[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/14726] New: _init and _fini garbage collected
From: |
amodra at gmail dot com |
Subject: |
[Bug gold/14726] New: _init and _fini garbage collected |
Date: |
Mon, 15 Oct 2012 23:57:31 +0000 |
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: address@hidden
ReportedBy: address@hidden
CC: address@hidden
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 gold/14726] New: _init and _fini garbage collected,
amodra at gmail dot com <=