mirror of
https://git.freebsd.org/ports.git
synced 2025-04-30 02:26:38 -04:00
The newer one apparently causes a regression on amd64 freestanding binaries. While here, fix some whitespace issues in Makefile. Submitted by: adalava
14 lines
666 B
C++
14 lines
666 B
C++
diff --git a/contrib/llvm-project/llvm/lib/CodeGen/TargetLoweringBase.cpp b/contrib/llvm-project/llvm/lib/CodeGen/TargetLoweringBase.cpp
|
|
--- llvm/lib/CodeGen/TargetLoweringBase.cpp
|
|
+++ llvm/lib/CodeGen/TargetLoweringBase.cpp
|
|
@@ -1961,7 +1961,8 @@
|
|
GlobalVariable::ExternalLinkage, nullptr,
|
|
"__stack_chk_guard");
|
|
if (TM.getRelocationModel() == Reloc::Static &&
|
|
- !TM.getTargetTriple().isWindowsGNUEnvironment())
|
|
+ !TM.getTargetTriple().isWindowsGNUEnvironment() &&
|
|
+ !(TM.getTargetTriple().isPPC64() && TM.getTargetTriple().isOSFreeBSD()))
|
|
GV->setDSOLocal(true);
|
|
}
|
|
}
|
|
|