How do I avoid linker padding?

William A. Gatliff bgat@open-widgets.com
Sat Apr 1 00:00:00 GMT 2000


Luke:

Luke Diamand wrote:

> Dunno if this helps, but I found that when linking a.out, it aligned the start of
> each compilation unit on a 16 byte boundary.
>
> This is set in binutils/bfd/cpu-arm.c with the macro 'N'. Argument 8 is used - it
> raises it to the power 2 and byte aligns that much. So we changed it locally from
> 4 to 2.

Bummer... it's already set to 1 for cpu-sh (my arch).

Any other ideas?

b.g.



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com



More information about the crossgcc mailing list