[llvm-bugs] [Bug 39461] New: llvm-objcopy --localize-hidden should ignore common section objects

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Oct 26 15:00:33 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=39461

            Bug ID: 39461
           Summary: llvm-objcopy --localize-hidden should ignore common
                    section objects
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: llvm-objcopy
          Assignee: rupprecht at google.com
          Reporter: rupprecht at google.com
                CC: alexander.v.shaposhnikov at gmail.com,
                    jake.h.ehrlich at gmail.com,
                    jh7370.2008 at my.bristol.ac.uk,
                    llvm-bugs at lists.llvm.org, rupprecht at google.com

echo 'int a; int b = 0; int c() { return 5; }' | bin/clang -xc - -c -o
/tmp/common.o -fvisibility=hidden

objcopy --localize-hidden /tmp/common.o; bin/llvm-readobj -symbols
/tmp/common.o
=> a is not localized, though b/c are

bin/llvm-objcopy --localize-hidden /tmp/common.o; bin/llvm-readobj -symbols
/tmp/common.o
=> a, b, c are all localized

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181026/e99592f3/attachment.html>


More information about the llvm-bugs mailing list