From b7807f42fbd231b0783eb0d26fd60b63153ca6d9 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 1 Oct 2023 00:25:44 -0500 Subject: system/gcc: Fix static PIE linking spec On 32-bit ARM, -Bsymbolic isn't enough. -Bstatic should be correct on all platforms, and should fix static PIE linking on armv7. Ref: #1070 --- system/gcc/0012-static-pie.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/gcc/0012-static-pie.patch') diff --git a/system/gcc/0012-static-pie.patch b/system/gcc/0012-static-pie.patch index 03a4f68f6..0600c791e 100644 --- a/system/gcc/0012-static-pie.patch +++ b/system/gcc/0012-static-pie.patch @@ -123,7 +123,7 @@ index eb1610ba8b0..87560afb03c 100644 #ifdef HAVE_LD_PIE #ifndef LD_PIE_SPEC -#define LD_PIE_SPEC "-pie" -+#define LD_PIE_SPEC "-pie %{static|static-pie:--no-dynamic-linker -z text -Bsymbolic}" ++#define LD_PIE_SPEC "-pie %{static|static-pie:--no-dynamic-linker -z text -Bstatic}" #endif #else #define LD_PIE_SPEC "" -- cgit v1.2.3-70-g09d2