From 7eccacf4188d425193a695724ee446153dfbf50d Mon Sep 17 00:00:00 2001 From: Timon Kruiper Date: Tue, 24 Jan 2023 21:43:38 +0100 Subject: [PATCH] Toolchain: Ensure aarch64 libgcc_s.so.1 includes DT_SONAME tag Without this tag, executables that link libgcc_s.so.1, which is every executable, end up with the host path to libgcc_s.so.1 as the path for the dynamic dependency (DT_NEEDED) of the executable. By making sure that the libgcc_s.so.1 shared object includes the DT_SONAME tag, the path to libgcc_s.so.1 dynamic dependency will only contain the basename, instead of the absolute host path. --- Toolchain/Patches/gcc/0003-libgcc-Build-for-SerenityOS.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Toolchain/Patches/gcc/0003-libgcc-Build-for-SerenityOS.patch b/Toolchain/Patches/gcc/0003-libgcc-Build-for-SerenityOS.patch index 4746652374..f4ee4062d6 100644 --- a/Toolchain/Patches/gcc/0003-libgcc-Build-for-SerenityOS.patch +++ b/Toolchain/Patches/gcc/0003-libgcc-Build-for-SerenityOS.patch @@ -53,7 +53,7 @@ index 8c56fcae5d2fdfcc8d1f9b2614f0c41ad44f258f..f5855cfa66d7950c3d7565ad938b4e47 + extra_parts="$extra_parts crti.o crtbegin.o crtend.o crtn.o" + extra_parts="$extra_parts crtfastmath.o" + tmake_file="$tmake_file ${cpu_type}/t-aarch64" -+ tmake_file="$tmake_file ${cpu_type}/t-lse t-slibgcc t-slibgcc-libgcc" ++ tmake_file="$tmake_file ${cpu_type}/t-lse t-slibgcc t-slibgcc-libgcc t-slibgcc-gld-nover" + tmake_file="$tmake_file ${cpu_type}/t-softfp t-softfp t-crtfm" + md_unwind_header=aarch64/aarch64-unwind.h + ;;