Summary: | relocation R_X86_64_PC32 against protected symbol `_Tvs19_emptyStringStorageVs6UInt32' can not be used when making a shared object | ||
---|---|---|---|
Product: | binutils | Reporter: | Markus Trippelsdorf <markus> |
Component: | ld | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | hjl.tools |
Priority: | P2 | ||
Version: | 2.27 | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: | ||
Attachments: | test object file |
Is this a dup for PR 17709 and https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65248 (In reply to H.J. Lu from comment #1) > Is this a dup for PR 17709 and > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65248 Well, Swift is build by clang, so gcc's PR65248 isn't relevant. Why does linking succeed with gold? (In reply to Markus Trippelsdorf from comment #2) > (In reply to H.J. Lu from comment #1) > > Is this a dup for PR 17709 and > > > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65248 > > Well, Swift is build by clang, so gcc's PR65248 isn't relevant. https://llvm.org/bugs/show_bug.cgi?id=26580 > Why does linking succeed with gold? That is a gold bug. See the -fuse-ld=gold test in my GCC/clang bug reports. *** This bug has been marked as a duplicate of bug 17709 *** |
Created attachment 8976 [details] test object file Building Swift fails on binutils trunk: % ld.gold -shared Swift.o % ld.bfd -shared Swift.o ld.bfd: Swift.o: relocation R_X86_64_PC32 against protected symbol `_Tvs19_emptyStringStorageVs6UInt32' can not be used when making a shared object ld.bfd: final link failed: Bad value