2023-01-20 17:47:04 -07:00
|
|
|
From 22d5ea11e8bafa0de4baf847e7a364795a7580a2 Mon Sep 17 00:00:00 2001
|
|
|
|
Message-Id: <22d5ea11e8bafa0de4baf847e7a364795a7580a2.1674261930.git.owen@owenrafferty.com>
|
2022-12-26 19:28:51 -07:00
|
|
|
From: Owen Rafferty <owen@owenrafferty.com>
|
|
|
|
Date: Mon, 26 Dec 2022 20:20:01 -0600
|
|
|
|
Subject: [PATCH] only build support for elf amd64
|
|
|
|
|
|
|
|
---
|
2023-01-20 17:47:04 -07:00
|
|
|
CMakeLists.txt | 15 +--------------
|
|
|
|
elf/elf-main.cc | 5 -----
|
2023-01-06 21:05:46 -07:00
|
|
|
2 files changed, 1 insertion(+), 19 deletions(-)
|
2022-12-26 19:28:51 -07:00
|
|
|
|
2022-09-27 11:10:15 -06:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2023-01-20 17:47:04 -07:00
|
|
|
index 54c4c86c..11ca21d5 100644
|
2022-09-27 11:10:15 -06:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2023-01-20 17:47:04 -07:00
|
|
|
@@ -280,8 +280,7 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
2022-11-12 23:22:42 -07:00
|
|
|
# compiler instances. This is hacky but greatly reduces compile time
|
|
|
|
# on a multicore machine.
|
2022-09-27 11:10:15 -06:00
|
|
|
list(APPEND MOLD_ELF_TARGETS
|
2022-10-19 10:53:39 -06:00
|
|
|
- X86_64 I386 ARM64 ARM32 RV32LE RV32BE RV64LE RV64BE
|
2023-01-06 21:05:46 -07:00
|
|
|
- PPC32 PPC64V1 PPC64V2 S390X SPARC64 M68K SH4 ALPHA)
|
2022-09-27 11:10:15 -06:00
|
|
|
+ X86_64)
|
|
|
|
|
|
|
|
list(APPEND MOLD_ELF_TEMPLATE_FILES
|
|
|
|
elf/cmdline.cc
|
2023-01-20 17:47:04 -07:00
|
|
|
@@ -351,18 +350,6 @@ target_sources(mold PRIVATE
|
|
|
|
common/perf.cc
|
|
|
|
common/tar.cc
|
|
|
|
common/uuid.cc
|
2023-01-06 21:05:46 -07:00
|
|
|
- elf/arch-alpha.cc
|
2022-09-27 11:10:15 -06:00
|
|
|
- elf/arch-arm32.cc
|
|
|
|
- elf/arch-arm64.cc
|
|
|
|
- elf/arch-i386.cc
|
2022-11-12 23:22:42 -07:00
|
|
|
- elf/arch-m68k.cc
|
2023-01-06 21:05:46 -07:00
|
|
|
- elf/arch-ppc32.cc
|
2022-10-19 10:53:39 -06:00
|
|
|
- elf/arch-ppc64v1.cc
|
2022-09-27 11:10:15 -06:00
|
|
|
- elf/arch-ppc64v2.cc
|
|
|
|
- elf/arch-riscv.cc
|
2022-10-19 10:53:39 -06:00
|
|
|
- elf/arch-s390x.cc
|
2023-01-06 21:05:46 -07:00
|
|
|
- elf/arch-sh4.cc
|
2022-09-27 11:10:15 -06:00
|
|
|
- elf/arch-sparc64.cc
|
|
|
|
elf/arch-x86-64.cc
|
2023-01-06 21:05:46 -07:00
|
|
|
elf/elf.cc
|
2023-01-20 17:47:04 -07:00
|
|
|
git-hash.cc
|
|
|
|
diff --git a/elf/elf-main.cc b/elf/elf-main.cc
|
|
|
|
index 06db1e14..1c920fcd 100644
|
|
|
|
--- a/elf/elf-main.cc
|
|
|
|
+++ b/elf/elf-main.cc
|
|
|
|
@@ -390,11 +390,6 @@ int elf_main(int argc, char **argv) {
|
2023-01-06 21:05:46 -07:00
|
|
|
if (ctx.arg.emulation.empty())
|
2022-09-27 11:10:15 -06:00
|
|
|
ctx.arg.emulation = deduce_machine_type(ctx, file_args);
|
|
|
|
|
|
|
|
- // Redo if -m is not x86-64.
|
2023-01-06 21:05:46 -07:00
|
|
|
- if constexpr (is_x86_64<E>)
|
|
|
|
- if (ctx.arg.emulation != X86_64::target_name)
|
2022-10-19 10:53:39 -06:00
|
|
|
- return redo_main<E>(argc, argv, ctx.arg.emulation);
|
2022-09-27 11:10:15 -06:00
|
|
|
-
|
|
|
|
Timer t_all(ctx, "all");
|
|
|
|
|
|
|
|
install_signal_handler();
|
2022-12-26 19:28:51 -07:00
|
|
|
--
|
2023-01-20 17:47:04 -07:00
|
|
|
2.39.1
|
2022-12-26 19:28:51 -07:00
|
|
|
|