https://llvm.org/bugs/show_bug.cgi?id=31476
Bug ID: 31476 Summary: LLD failed to link symbols with "protected" visibility Product: lld Version: unspecified Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: ELF Assignee: unassignedb...@nondot.org Reporter: mail+l...@tzik.jp CC: llvm-bugs@lists.llvm.org Classification: Unclassified On ToT LLD, I hit a link error when I try to use protected symbol in a .so from an elf binary. Here is a repro: $ cat > foo.c <<EOF void foo() {} EOF $ clang -shared -fPIC -fvisibility=protected -o libfoo.so foo.c $ cat > bar.c <<EOF void foo(); int main() { foo(); return 0; } EOF $ clang -fuse-ld=lld bar.c libfoo.so ld.lld: error: bar.c:(function main): cannot preempt symbol 'foo' defined in libfoo.so -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs