mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2025-12-25 13:10:37 +00:00
15 lines
736 B
Diff
15 lines
736 B
Diff
Work around threading issue on some AArch64 devices, see llvm/llvm-project#62165 for more info.
|
|
diff --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp
|
|
index 2f7fcd664c6a..f9cf5e7c1a29 100644
|
|
--- a/lld/ELF/Relocations.cpp
|
|
+++ b/lld/ELF/Relocations.cpp
|
|
@@ -1522,7 +1522,7 @@ template <class ELFT> void elf::scanRelocations() {
|
|
// for -z nocombreloc. MIPS and PPC64 use global states which are not suitable
|
|
// for parallelism.
|
|
bool serial = !ctx.arg.zCombreloc || ctx.arg.emachine == EM_MIPS ||
|
|
- ctx.arg.emachine == EM_PPC64;
|
|
+ ctx.arg.emachine == EM_PPC64 || ctx.arg.emachine == EM_AARCH64;
|
|
parallel::TaskGroup tg;
|
|
auto outerFn = [&]() {
|
|
for (ELFFileBase *f : ctx.objectFiles) {
|