http://llvm.org/bugs/show_bug.cgi?id=22303
Bug ID: 22303
Summary: lld gets confused with STB_GNU_UNIQUE (gcc produced
file)
Product: lld
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Found while trying to link a gcc compiled lld with lld.
$ cat test.s
.section abc,"G",@progbits,foo,comdat
.type bar, @gnu_unique_object
bar:
.long 42
[$ llvm-mc test.s -o test.o -filetype=obj
$ ld test.o test.o -o test.so -shared
$ lld -flavor gnu test.o test.o -o test.so -shared
Duplicate symbols: bar:test.o and bar:test.o
LLVM ERROR: duplicate symbol error
Which is odd, since we have a comdat, so I would expect lld to discard it when
it finds the comdat a second time.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs