[patch]: Discard some sections for pe and pep

Kai Tietz ktietz70@googlemail.com
Sat Nov 21 13:56:00 GMT 2009


Hello all,

we just were falling over the lto sections generated by gcc with lto
support. Those section can be discarded by final linkage AFAIU.
Also this patch ensures, that .bss section is getting aligned to a 16
byte block, this avoids some issues with sse usage.
About the discarding of section .gnu_debuginfo I am not that sure, but
AFAICS it should be ok here, too.

2009-11-21  Kai Tietz  <kai.tietz@onevision.com>

	* scripttempl/pe.sc: (.note.GNU-stack): Mark as discardable.
	(.gnu_debuglink): Likewise.
	(.gnu.lto_*): Likewise.
	(.bss): Use 16 byte alignment.
	* scripttempl/pep.sc: (.note.GNU-stack): Mark as discardable.
	(.gnu_debuglink): Likewise.
	(.gnu.lto_*): Likewise.
	(.bss): Use 16 byte alignment.

Tested for i686-pc-mingw32, i686-pc-cygwin, and x86_64-pc-mingw32. Ok for apply?

Cheers,
Kai

-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lto_pe.patch
Type: application/octet-stream
Size: 1337 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20091121/876b4b33/attachment.obj>


More information about the Binutils mailing list