When object files containing LTO sections are linked together with ld -r
the linker merges all sections with the same name. The LTO reader cannot
deal with this. Currently it will just ignore excessive data behind
the first entry for most sections, which leads to all kinds of errors.
I have been working on a patch kit to solve this, this is just a tracking
bug for it.
--
Summary: ld -r breaks LTO
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: andi-gcc at firstfloor dot org
GCC host triplet: x86_64-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44992