Alignment of .sections
Thiemo Seufer
ica2_ts@csv.ica.uni-stuttgart.de
Mon Jul 30 12:37:00 GMT 2001
Frank Klemm wrote:
> Hi,
>
> I need to explicitely align sections in GNU assembler sources.
> The problem is that the minimum alignment for GNU assembler seems to be 4
> (2^2), but I need no alignment (1 = 2^0).
Just curious, what's the use of doing so (except of slowing down
your code :-)?
> How to specify this in a GNU
> assembler source? It is not a restriction of the ELF format. NASM
> can generate such ELF objects without any problem.
At least the gABI Spec requires 4 byte alignment for addresses
and large integers on a 32bit architecture, so NASM seems to have
an, hm, extension to the ABI's requirements.
Thiemo
More information about the Binutils
mailing list