2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-21 23:00:06 -07:00

mold: 2.34.0

This commit is contained in:
Owen Rafferty 2024-09-25 00:28:30 -05:00
parent c40556d132
commit 7a0606ace0
No known key found for this signature in database
4 changed files with 64 additions and 67 deletions

View File

@ -1,2 +1,2 @@
cbaf99fe2691c16af9192d0e6abc6ed15664dd7b05312376c80dfa96712d19db91 10362d9e2c61beb7b6d66933ef37ca8548d4440958e9028de1069f14a9f480935e
367332e5e2fafeef1851ef4ef1277188b5f90616fe7cee0c68606270baecbe6125 680c898ed54f13e995b72df4b56f0978bca8c6463a3e7d53f0799f10e5d7bedb1f

View File

@ -1,44 +1,43 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt
index dcf935d..619874e 100644 index d6d1500..9e831f7 100644
--- a/CMakeLists.txt --- a/CMakeLists.txt
+++ b/CMakeLists.txt +++ b/CMakeLists.txt
@@ -299,12 +299,9 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR}) @@ -304,12 +304,9 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR})
# compiler instances. This is hacky but greatly reduces compile time # compiler instances. This is hacky but greatly reduces compile time
# on a multicore machine. # on a multicore machine.
list(APPEND MOLD_ELF_TARGETS list(APPEND MOLD_ELF_TARGETS
- X86_64 I386 ARM64 ARM32 RV32LE RV32BE RV64LE RV64BE PPC32 PPC64V1 PPC64V2 - X86_64 I386 ARM64 ARM32 RV32LE RV32BE RV64LE RV64BE PPC32 PPC64V1 PPC64V2
- S390X SPARC64 M68K SH4 ALPHA LOONGARCH32 LOONGARCH64) - S390X SPARC64 M68K SH4 LOONGARCH32 LOONGARCH64)
+ X86_64) + X86_64)
list(APPEND MOLD_ELF_TEMPLATE_FILES list(APPEND MOLD_ELF_TEMPLATE_FILES
- elf/arch-loongarch.cc - src/arch-loongarch.cc
- elf/arch-riscv.cc - src/arch-riscv.cc
elf/cmdline.cc src/cmdline.cc
elf/gc-sections.cc src/gc-sections.cc
elf/gdb-index.cc src/gdb-index.cc
@@ -357,17 +354,6 @@ target_sources(mold PRIVATE @@ -376,16 +373,6 @@ target_sources(mold PRIVATE
common/perf.cc lib/perf.cc
common/random.cc lib/random.cc
common/tar.cc lib/tar.cc
- elf/arch-alpha.cc - src/arch-arm32.cc
- elf/arch-arm32.cc - src/arch-arm64.cc
- elf/arch-arm64.cc - src/arch-i386.cc
- elf/arch-i386.cc - src/arch-m68k.cc
- elf/arch-m68k.cc - src/arch-ppc32.cc
- elf/arch-ppc32.cc - src/arch-ppc64v1.cc
- elf/arch-ppc64v1.cc - src/arch-ppc64v2.cc
- elf/arch-ppc64v2.cc - src/arch-s390x.cc
- elf/arch-s390x.cc - src/arch-sh4.cc
- elf/arch-sh4.cc - src/arch-sparc64.cc
- elf/arch-sparc64.cc src/arch-x86-64.cc
elf/arch-x86-64.cc src/config.cc
elf/config.cc src/elf.cc
elf/elf.cc diff --git a/src/main.cc b/src/main.cc
diff --git a/elf/main.cc b/elf/main.cc index ce94043..2373218 100644
index daf7da5..bc8397c 100644 --- a/src/main.cc
--- a/elf/main.cc +++ b/src/main.cc
+++ b/elf/main.cc @@ -361,11 +361,6 @@ int mold_main(int argc, char **argv) {
@@ -360,11 +360,6 @@ int elf_main(int argc, char **argv) {
if (ctx.arg.emulation.empty()) if (ctx.arg.emulation.empty())
ctx.arg.emulation = detect_machine_type(ctx, file_args); ctx.arg.emulation = detect_machine_type(ctx, file_args);
@ -50,11 +49,11 @@ index daf7da5..bc8397c 100644
Timer t_all(ctx, "all"); Timer t_all(ctx, "all");
install_signal_handler(); install_signal_handler();
diff --git a/elf/mold.h b/elf/mold.h diff --git a/src/mold.h b/src/mold.h
index b775e4e..dc221c5 100644 index 322a0ea..9058295 100644
--- a/elf/mold.h --- a/src/mold.h
+++ b/elf/mold.h +++ b/src/mold.h
@@ -1376,7 +1376,6 @@ std::vector<std::string> parse_nonpositional_args(Context<E> &ctx); @@ -1563,7 +1563,6 @@ std::vector<std::string> parse_nonpositional_args(Context<E> &ctx);
// passes.cc // passes.cc
// //
@ -62,62 +61,60 @@ index b775e4e..dc221c5 100644
template <typename E> void create_internal_file(Context<E> &); template <typename E> void create_internal_file(Context<E> &);
template <typename E> void apply_exclude_libs(Context<E> &); template <typename E> void apply_exclude_libs(Context<E> &);
template <typename E> void create_synthetic_sections(Context<E> &); template <typename E> void create_synthetic_sections(Context<E> &);
diff --git a/elf/passes.cc b/elf/passes.cc diff --git a/src/passes.cc b/src/passes.cc
index 8b5f499..f055b8c 100644 index 807bb2b..0ef86a1 100644
--- a/elf/passes.cc --- a/src/passes.cc
+++ b/elf/passes.cc +++ b/src/passes.cc
@@ -13,50 +13,6 @@ @@ -14,48 +14,6 @@
namespace mold::elf { namespace mold {
-// Since elf_main is a template, we can't run it without a type parameter. -// Since mold_main is a template, we can't run it without a type parameter.
-// We speculatively run elf_main with X86_64, and if the speculation was -// We speculatively run mold_main with X86_64, and if the speculation was
-// wrong, re-run it with an actual machine type. -// wrong, re-run it with an actual machine type.
-template <typename E> -template <typename E>
-int redo_main(Context<E> &ctx, int argc, char **argv) { -int redo_main(Context<E> &ctx, int argc, char **argv) {
- std::string_view target = ctx.arg.emulation; - std::string_view target = ctx.arg.emulation;
- -
- if (target == I386::target_name) - if (target == I386::target_name)
- return elf_main<I386>(argc, argv); - return mold_main<I386>(argc, argv);
- if (target == ARM64::target_name) - if (target == ARM64::target_name)
- return elf_main<ARM64>(argc, argv); - return mold_main<ARM64>(argc, argv);
- if (target == ARM32::target_name) - if (target == ARM32::target_name)
- return elf_main<ARM32>(argc, argv); - return mold_main<ARM32>(argc, argv);
- if (target == RV64LE::target_name) - if (target == RV64LE::target_name)
- return elf_main<RV64LE>(argc, argv); - return mold_main<RV64LE>(argc, argv);
- if (target == RV64BE::target_name) - if (target == RV64BE::target_name)
- return elf_main<RV64BE>(argc, argv); - return mold_main<RV64BE>(argc, argv);
- if (target == RV32LE::target_name) - if (target == RV32LE::target_name)
- return elf_main<RV32LE>(argc, argv); - return mold_main<RV32LE>(argc, argv);
- if (target == RV32BE::target_name) - if (target == RV32BE::target_name)
- return elf_main<RV32BE>(argc, argv); - return mold_main<RV32BE>(argc, argv);
- if (target == PPC32::target_name) - if (target == PPC32::target_name)
- return elf_main<PPC32>(argc, argv); - return mold_main<PPC32>(argc, argv);
- if (target == PPC64V1::target_name) - if (target == PPC64V1::target_name)
- return elf_main<PPC64V1>(argc, argv); - return mold_main<PPC64V1>(argc, argv);
- if (target == PPC64V2::target_name) - if (target == PPC64V2::target_name)
- return elf_main<PPC64V2>(argc, argv); - return mold_main<PPC64V2>(argc, argv);
- if (target == S390X::target_name) - if (target == S390X::target_name)
- return elf_main<S390X>(argc, argv); - return mold_main<S390X>(argc, argv);
- if (target == SPARC64::target_name) - if (target == SPARC64::target_name)
- return elf_main<SPARC64>(argc, argv); - return mold_main<SPARC64>(argc, argv);
- if (target == M68K::target_name) - if (target == M68K::target_name)
- return elf_main<M68K>(argc, argv); - return mold_main<M68K>(argc, argv);
- if (target == SH4::target_name) - if (target == SH4::target_name)
- return elf_main<SH4>(argc, argv); - return mold_main<SH4>(argc, argv);
- if (target == ALPHA::target_name)
- return elf_main<ALPHA>(argc, argv);
- if (target == LOONGARCH32::target_name) - if (target == LOONGARCH32::target_name)
- return elf_main<LOONGARCH32>(argc, argv); - return mold_main<LOONGARCH32>(argc, argv);
- if (target == LOONGARCH64::target_name) - if (target == LOONGARCH64::target_name)
- return elf_main<LOONGARCH64>(argc, argv); - return mold_main<LOONGARCH64>(argc, argv);
- unreachable(); - unreachable();
-} -}
- -
template <typename E> template <typename E>
void apply_exclude_libs(Context<E> &ctx) { void apply_exclude_libs(Context<E> &ctx) {
Timer t(ctx, "apply_exclude_libs"); Timer t(ctx, "apply_exclude_libs");
@@ -3086,7 +3042,6 @@ void show_stats(Context<E> &ctx) { @@ -3210,7 +3168,6 @@ void show_stats(Context<E> &ctx) {
using E = MOLD_TARGET; using E = MOLD_TARGET;

View File

@ -1,2 +1,2 @@
https://github.com/rui314/mold/archive/v2.33.0.tar.gz https://github.com/rui314/mold/archive/v2.34.0.tar.gz
patches/amd64_only.patch patches/amd64_only.patch

View File

@ -1 +1 @@
2.33.0 1 2.34.0 1