This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Alignment of .sections
- To: binutils at sources dot redhat dot com
- Subject: Re: Alignment of .sections
- From: Thiemo Seufer <ica2_ts at csv dot ica dot uni-stuttgart dot de>
- Date: Mon, 30 Jul 2001 21:37:04 +0200
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