This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: gas: .align padding
- To: Andrew Morton <akpm at bigfoot dot com>
- Subject: Re: gas: .align padding
- From: Alan Modra <alan at SPRI dot Levels dot UniSA dot Edu dot Au>
- Date: Fri, 15 Oct 1999 21:08:21 +0930 (CST)
- cc: "binutils at sourceware dot cygnus dot com" <binutils at sourceware dot cygnus dot com>
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.