bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/16530] New: --dynamic-list does not protect symbols from being


From: eugeni.stepanov at gmail dot com
Subject: [Bug gold/16530] New: --dynamic-list does not protect symbols from being garbage collected
Date: Wed, 05 Feb 2014 09:13:20 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=16530

            Bug ID: 16530
           Summary: --dynamic-list does not protect symbols from being
                    garbage collected
           Product: binutils
           Version: 2.25 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gold
          Assignee: ian at airs dot com
          Reporter: eugeni.stepanov at gmail dot com
                CC: ccoutant at google dot com

$ cat z.cc
extern "C" void f() {}
int main() { return 0; }
$ cat z.syms 
{
  f;
};
$ g++ z.cc -o z -Wl,--dynamic-list,z.syms -Wl,--gc-sections -ffunction-sections
$ objdump -T z

With Gold linker (today's trunk), f is not exported from the executable. With
BFD linker, it is exported as a local(?) symbol.

-- 
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]