http://sourceware.org/bugzilla/show_bug.cgi?id=14465
Bug #: 14465
Summary: GOLD segfaults when linking with discarded .plt
sections
Product: binutils
Version: 2.23 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: gold
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Discovered whilst creating a test for a different bug:
% cat discard.t
SECTIONS
{
.text : { *(.text) }
/DISCARD/ : { *(*) }
}
% gold /usr/lib/crt1.o -L/usr/lib/gcc/i686-redhat-linux/4.7.0 -lc -T
discard.t
Segmentation fault
The problem appears to be that GOLD expects that the .plt and .rel.plt sections
will both be present in the output file.
The test case is obviously nonsensical, but it is a cut down version of a much
larger, and sensible, test case.
--
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