delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/13/07:47:59

Message-Id: <m0xs05L-000S25C@inti.gov.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT gov DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
Organization: INTI
To: tiberius AT mailhost DOT net, djgpp AT delorie DOT com
Date: Tue, 13 Jan 1998 09:49:49 +0000
MIME-Version: 1.0
Subject: Re: New NASM and ALIGN
In-reply-to: <34BA7165.528B@mailhost.net>

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019