Skip to content

Commit 0614ff9

Browse files
committed
Workaround invalid reloc 315 on aarch64 Linux
`gold` fails to link `libswiftDispatch.so` on aarch64 Linux due to: ``` /usr/bin/ld.gold: error: Invalid/unrecognized reloc reloc 315. /usr/bin/ld.gold: internal error in global, at ../../gold/aarch64.cc:6398 clang: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. ``` Attempt to workaround this via disabling `SupportIndirectSymViaGOTPCRel`. rdar://135050296
1 parent db1d216 commit 0614ff9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

llvm/lib/Target/AArch64/AArch64TargetObjectFile.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ class AArch64_ELFTargetObjectFile : public TargetLoweringObjectFileELF {
2222
public:
2323
AArch64_ELFTargetObjectFile() {
2424
PLTRelativeVariantKind = MCSymbolRefExpr::VK_PLT;
25-
SupportIndirectSymViaGOTPCRel = true;
2625
}
2726

2827
const MCExpr *getIndirectSymViaGOTPCRel(const GlobalValue *GV,

0 commit comments

Comments
 (0)