Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" 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 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: New NASM and ALIGN In-reply-to: <34BA7165.528B@mailhost.net> Precedence: bulk Richard Nichols 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