This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch]: Discard some sections for pe and pep


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

Attachment: lto_pe.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]