This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Alignment of .sections
- To: binutils at sources dot redhat dot com
- Subject: Alignment of .sections
- From: Frank Klemm <pfk at fuchs dot offl dot uni-jena dot de>
- Date: Mon, 30 Jul 2001 18:37:00 +0200
- >Received: (from pfk@localhost)by fuchs.offl.uni-jena.de (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id SAA06739for binutils@sources.redhat.com; Mon, 30 Jul 2001 18:37:03 +0200
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). 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.
Examples of other assemblers:
TASM:
MASM:
_TEXT segment 'CODE' align=1
db 'Hallo', 0
NASM:
segment .code align=1
db 'Hallo', 0
GAS:
???
--
Frank Klemm