extra alignment/padding when using pe-i386
Alan Modra
amodra@bigpond.net.au
Thu Aug 6 04:26:00 GMT 2009
On Wed, Aug 05, 2009 at 02:11:11PM -0700, Galen Seitz wrote:
> When assembling the following code with an assembler that generates
> pe-i386 format, the data section gets extra bytes added *after* the
> constant value. When the same code is assembled using an assembler that
> generates elf32-i386, the extra bytes are not present. Is there a way to
> make the output of the pe-i386 and elf32-i386 assemblers match? The
> pe-i386 assembler is being run under cygwin, and the elf32-i386 assembler
> is being run under linux. (Please pardon the line wrapping.)
You are getting the unwanted alignment at bfd/coffcode.h:3368, so
you would need to undef ALIGN_SECTIONS_IN_FILE. I don't know enough
about COFF/PE to advise you on possible repercussions.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list