gas: .align padding

Alan Modra alan@SPRI.Levels.UniSA.Edu.Au
Fri Oct 15 04:38:00 GMT 1999
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.



More information about the Binutils mailing list