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: [email protected]
Reporter: [email protected]
CC: [email protected]
[hjl@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@GCC_3.0");
asm (".symver __netf2_shared,__netf2@@GCC_4.3.0");
[hjl@gnu-skl-1 pr28414c]$ cat libfoo.map
GCC_3.0
{
global:
__netf2;
local:
*;
};
GCC_4.3.0
{
global:
__netf2;
} GCC_3.0;
[hjl@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@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._______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs