This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: DJGPP and alignment
- To: binutils@sourceware.cygnus.com
- Subject: Re: DJGPP and alignment
- From: "Mark E." <snowball3@bigfoot.com>
- Date: Wed, 21 Jul 1999 20:30:51 -0400
- CC: djgpp-workers@delorie.com
- References: <199907211607.QAA38452@out1.ibm.net>; from Mark E. on Wed, Jul 21, 1999 at 12:07:18PM -0400
Hello Richard,
> I fear you're getting yourself into trouble, since there's no
> way to change the section alignment in coff.
Since the documentation is silent on this, what does
COFF_DEFAULT_SECTION_ALIGNMENT_POWER do then? My tests
show it does increase the size of the object files and executables
accordingly.
> If you do any sort of collect-sections-to-make-data kinds of
> things like .ctors or .dtors, that'll break. Do you know that
> you're using collect2 to construct constructor lists?
I'm not 100% sure, but I don't think so. The linker script groups them
together in the .data section and surrounds them with special symbols
(djgpp_first_ctor, etc.) defined in the script.
Mark
---
Mark Elbrecht, snowball3@bigfoot.com
http://snowball.frogspace.net/