bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/19645] New: STT_COMMON symbols treated as non-data by -dynamic-l


From: bugdal at aerifal dot cx
Subject: [Bug ld/19645] New: STT_COMMON symbols treated as non-data by -dynamic-list-data/-Bsymbolic-functions
Date: Tue, 16 Feb 2016 19:11:42 +0000

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]