[llvm-bugs] [Bug 33712] New: warning: duplicate symbol '__netf2' in version script

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jul 7 07:49:03 PDT 2017


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

            Bug ID: 33712
           Summary: warning: duplicate symbol '__netf2' in version script
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: hjl.tools at gmail.com
                CC: llvm-bugs at lists.llvm.org

[hjl at gnu-skl-1 pr28414c]$ cat x.c
void
__netf2_shared (void)
{
}

asm (".globl __netf2_compat");
asm ("__netf2_compat = __netf2_shared");

asm (".symver __netf2_compat,__netf2 at GCC_3.0");
asm (".symver __netf2_shared,__netf2@@GCC_4.3.0");
[hjl at gnu-skl-1 pr28414c]$ cat libfoo.map
GCC_3.0
{
global:
  __netf2;
local:
   *;
};
GCC_4.3.0
{
global:
  __netf2;
} GCC_3.0;
[hjl at gnu-skl-1 pr28414c]$ make
cc -fpic -g   -c -o x.o x.c
./ld  --version-script=libfoo.map -shared -o x.so x.o
./ld: warning: duplicate symbol '__netf2' in version script
[hjl at gnu-skl-1 pr28414c]$ 

__netf2 has 2 versions.  There is no duplication.

-- 
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/20170707/0d8f49ea/attachment.html>


More information about the llvm-bugs mailing list