summaryrefslogtreecommitdiff
path: root/system/gcc/0012-static-pie.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2023-10-01 00:25:44 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2023-10-03 21:56:40 -0500
commitb7807f42fbd231b0783eb0d26fd60b63153ca6d9 (patch)
treec71c6847549ea03dd33221fb9674f3ec5230651b /system/gcc/0012-static-pie.patch
parent2669cf52f6ce6bdbe891cc53e186ac5ef856b02a (diff)
downloadpackages-b7807f42fbd231b0783eb0d26fd60b63153ca6d9.tar.gz
packages-b7807f42fbd231b0783eb0d26fd60b63153ca6d9.tar.bz2
packages-b7807f42fbd231b0783eb0d26fd60b63153ca6d9.tar.xz
packages-b7807f42fbd231b0783eb0d26fd60b63153ca6d9.zip
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
Diffstat (limited to 'system/gcc/0012-static-pie.patch')
-rw-r--r--system/gcc/0012-static-pie.patch2
1 files changed, 1 insertions, 1 deletions
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 ""