gas: .align padding

Jakub Jelinek jakub@redhat.com
Fri Oct 15 04:40:00 GMT 1999


On Fri, Oct 15, 1999 at 11:32:00AM +0000, Andrew Morton wrote:
> Good morning.  A few things:
> 
> ----
> When padding .aligns gas seems to put random gunk into the object file
> instead of nops or nulls. Can this be fixed?

Fixed? It is done on purpose. Gas chooses instructions which will as few
cycles as possible to execute which filling up all the required space.
Just measure how 7 nops execute and how fast is leal 0x0(%esi,1),%esi
(and neither change any user visible state with the exception of program
counter).

Cheers,
    Jakub
___________________________________________________________________
Jakub Jelinek | jakub@redhat.com | http://sunsite.mff.cuni.cz/~jj
Linux version 2.3.18 on a sparc64 machine (1343.49 BogoMips)
___________________________________________________________________


More information about the Binutils mailing list