This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gas: .align padding



On Fri, 15 Oct 1999, Andrew Morton wrote:

> Good morning.  A few things:
Good evening!

> When padding .aligns gas seems to put random gunk into the object file
> instead of nops or nulls. Can this be fixed?
> 
> bix:~> cat t.s
>         nop
>         .align 8
>         nop
> 
> bix:~> objdump --disassemble t.o
> 
> t.o:     file format elf32-i386
> 
> Disassembly of section .text:
> 
> 00000000 <.text>:
>    0:   90                      nop
>    1:   8d b4 26 00 00 00 00    leal   0x0(%esi,1),%esi
>    8:   90                      nop

That's not random gunk!  That's a 7 byte nop.

Use ".align 8,0x90" if you want single byte nops.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]