Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 993e1fe

Browse files
committed
Disable indirect symbols via GOT pcrel on Mach-O 64-bit
This commit currently causes LLVM to segfault when compiling Rust code on 64-bit OSX platforms, reported as this LLVM bug: https://llvm.org/bugs/show_bug.cgi?id=23779 A bisection turned up r230264 as the offending commit, the review of which is at http://reviews.llvm.org/D6922. To the best of my knowledge this looks like it's an optimization for OSX which is fine to omit, so this commit just flips the flag to *not* perform this optimization, allowing Rust to bootstrap and pass all tests on OSX 64-bit.
1 parent 0023fb9 commit 993e1fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/CodeGen/TargetLoweringObjectFileImpl.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ TargetLoweringObjectFileELF::InitializeELF(bool UseInitArray_) {
437437

438438
TargetLoweringObjectFileMachO::TargetLoweringObjectFileMachO()
439439
: TargetLoweringObjectFile() {
440-
SupportIndirectSymViaGOTPCRel = true;
440+
SupportIndirectSymViaGOTPCRel = false;
441441
}
442442

443443
/// getDepLibFromLinkerOpt - Extract the dependent library name from a linker

0 commit comments

Comments
 (0)