This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Alignment of .sections


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]