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]

Alignment of .sections


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


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