Mail Archives: djgpp/1998/01/13/07:47:59
Richard Nichols <tiberius AT mailhost DOT net> wrote:
> why doesn't NASM 0.97 let you say:
> [SECTION .text ALIGN=4]
> it gives me a error like 'standard coff does not support section
> alignment'.
> ???
I'm not a COFF guru, but what NASM says is true. You can't ask for an special
aligment of a section in the COFF .o file. You can do it in other formats but
DJGPP doesn't support it (for example ELF supports that).
To align a COFF section you MUST edit the linking script (djgpp.dlk or
something like that located in the lib directory). You must indicate what
section/s (you can use wildcards) will be included in the output file, in what
region(?) (.text, .data, .bss) and with what aligment. Read the ld info file to
see the available commands.
I was able to align some special section to a 64 bits (8 bytes) boundary doing
that.
SET
------------------------------------ 0 --------------------------------
Visit my home page: http://set-soft.home.ml.org/
or
http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-sot AT usa DOT net - ICQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013
- Raw text -