http://sourceware.org/bugzilla/show_bug.cgi?id=14726
Bug #: 14726
Summary: _init and _fini garbage collected
Product: binutils
Version: 2.24 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: gold
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Seen during mainline gcc bootstrap on powerpc64. When building libstdc++, the
version script forces _init (and _fini) local, so these symbols are not
exported and the gc_mark_symbol at the end of symtab.cc:add_from_relobj is not
called. On powerpc64 this results in crti.o .opd section being discarded which
in turn results in _init and DT_INIT having a value of zero. _init code would
be discarded on powerpc64 and other targets if crti.o was built with
-ffunction-sections.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils