[PATCH] Generate "correct" PE executables with low alignment
Filip Navara
xnavara@volny.cz
Sun Sep 26 19:37:00 GMT 2004
This patch solves one part of the infamous problem of "ld" generating
incorrect PE binaries when low alignment is specified. The section
virtual memory layout must match the on-disk layout of the file in this
case (as the PE standard says). There's still other problem with the
".bss" section not accepted by the Windows loader and thus rejecting the
generated executables. So far I haven't solved that in proper way, but I
have workaround: Merge the .bss section at the end of .data section and
move .data as the last loadable section in the file.
- Filip Navara
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ld1.diff
Type: text/x-patch
Size: 2828 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20040926/525b9625/attachment.bin>
More information about the Binutils
mailing list