https://sourceware.org/bugzilla/show_bug.cgi?id=19140
Bug ID: 19140
Summary: __star_* and __stop_* symbols show up in dynamic
relocation
Product: binutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: gold
Assignee: ccoutant at gmail dot com
Reporter: rafael.espindola at gmail dot com
CC: ian at airs dot com
Target Milestone: ---
Given
.long __start_bar - .
.long __init_array_start - .
.section bar,"a"
gold complains about the first but not the second relocation when creating a
shared library:
ld: error: test.o: requires dynamic R_X86_64_PC32 reloc against '__start_bar'
which may overflow at runtime; recompile with -fPIC
bfd ld complains about both.
Alternatively, given
.quad __start_bar
.quad __init_array_start
.section bar,"a"
gold creates a dynamic relocation for __start_bar but not __init_array_start.
With bfd ld one gets dynamic relocations for both.
Given what these symbols are, gold's behavior with __init_array_start seems the
most reasonable.
--
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