https://sourceware.org/bugzilla/show_bug.cgi?id=19645
Bug ID: 19645
Summary: STT_COMMON symbols treated as non-data by
-dynamic-list-data/-Bsymbolic-functions
Product: binutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: bugdal at aerifal dot cx
Target Milestone: ---
If binutils is built with STT_COMMON support enabled, use of
-Bsymbolic-functions for libraries with visible data subject to copy
relocations produces broken output. Consider for example:
int foo;
int *bar() { return &foo; }
When linked as a shared library, there is no GLOB_DAT type relocation for foo.
The problem is in bfd/elflink.c, bfd_elf_link_mark_dynamic_symbol. It only
checks for STT_OBJECT, not STT_COMMON, when marking data as dynamic.
--
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