repo/extra/mold/patches/amd64_only.patch

49 lines
1.4 KiB
Diff
Raw Normal View History

2022-09-27 17:10:15 +00:00
diff --git a/CMakeLists.txt b/CMakeLists.txt
2023-09-28 02:07:49 +00:00
index 0cff71f..e9dad4e 100644
2022-09-27 17:10:15 +00:00
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
2023-09-28 02:07:49 +00:00
@@ -294,8 +294,7 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR})
2022-11-13 06:22:42 +00:00
# compiler instances. This is hacky but greatly reduces compile time
# on a multicore machine.
2022-09-27 17:10:15 +00:00
list(APPEND MOLD_ELF_TARGETS
2023-07-27 00:37:30 +00:00
- X86_64 I386 ARM64 ARM32 RV32LE RV32BE RV64LE RV64BE PPC32 PPC64V1 PPC64V2
2023-09-28 02:07:49 +00:00
- S390X SPARC64 M68K SH4 ALPHA LOONGARCH32 LOONGARCH64)
2022-09-27 17:10:15 +00:00
+ X86_64)
list(APPEND MOLD_ELF_TEMPLATE_FILES
2023-08-21 23:26:58 +00:00
elf/arch-loongarch.cc
2023-09-28 02:07:49 +00:00
@@ -370,17 +369,6 @@ target_sources(mold PRIVATE
2023-01-21 00:47:04 +00:00
common/perf.cc
common/tar.cc
common/uuid.cc
2023-01-07 04:05:46 +00:00
- elf/arch-alpha.cc
2022-09-27 17:10:15 +00:00
- elf/arch-arm32.cc
- elf/arch-arm64.cc
- elf/arch-i386.cc
2022-11-13 06:22:42 +00:00
- elf/arch-m68k.cc
2023-01-07 04:05:46 +00:00
- elf/arch-ppc32.cc
2022-10-19 16:53:39 +00:00
- elf/arch-ppc64v1.cc
2022-09-27 17:10:15 +00:00
- elf/arch-ppc64v2.cc
2022-10-19 16:53:39 +00:00
- elf/arch-s390x.cc
2023-01-07 04:05:46 +00:00
- elf/arch-sh4.cc
2022-09-27 17:10:15 +00:00
- elf/arch-sparc64.cc
elf/arch-x86-64.cc
2023-01-07 04:05:46 +00:00
elf/elf.cc
2023-01-21 00:47:04 +00:00
git-hash.cc
2023-03-17 00:49:05 +00:00
diff --git a/elf/main.cc b/elf/main.cc
2023-09-28 02:07:49 +00:00
index 8827a8c..64388cd 100644
2023-03-17 00:49:05 +00:00
--- a/elf/main.cc
+++ b/elf/main.cc
2023-09-28 02:07:49 +00:00
@@ -399,11 +399,6 @@ int elf_main(int argc, char **argv) {
2023-01-07 04:05:46 +00:00
if (ctx.arg.emulation.empty())
2022-09-27 17:10:15 +00:00
ctx.arg.emulation = deduce_machine_type(ctx, file_args);
- // Redo if -m is not x86-64.
2023-01-07 04:05:46 +00:00
- if constexpr (is_x86_64<E>)
- if (ctx.arg.emulation != X86_64::target_name)
2023-09-28 02:07:49 +00:00
- return redo_main(argc, argv, ctx.arg.emulation);
2022-09-27 17:10:15 +00:00
-
Timer t_all(ctx, "all");
install_signal_handler();