summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-11-04 06:17:46 -0400
committerMike Frysinger <vapier@gentoo.org>2021-11-04 06:17:46 -0400
commitc89bcab82ce9218522d9b47fe543a419dc74a93b (patch)
treedf78c710d417e77d4778334d023fc2498e210830
parentbackport -fsanitize & -fuse-ld for 2.4.6 (diff)
downloadelt-patches-c89bcab8.tar.gz
elt-patches-c89bcab8.tar.bz2
elt-patches-c89bcab8.zip
patches: backport -specs patch
This is needed for the -fsanitize/-fuse-ld to apply cleanly to the original 2.4.6 release and not just what distros are shipping. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--eltpatch.in2
-rw-r--r--patches/specs/2.4.629
2 files changed, 30 insertions, 1 deletions
diff --git a/eltpatch.in b/eltpatch.in
index 7fa21bc..887fc6f 100644
--- a/eltpatch.in
+++ b/eltpatch.in
@@ -127,7 +127,7 @@ elibtoolize() {
local force="false"
local elt_patches="
install-sh ltmain portage relink max_cmd_len sed test tmp cross as-needed target-nm ppc64le
- fsanitize fuse-ld
+ specs fsanitize fuse-ld
"
for x in "$@" ; do
diff --git a/patches/specs/2.4.6 b/patches/specs/2.4.6
new file mode 100644
index 0000000..8541145
--- /dev/null
+++ b/patches/specs/2.4.6
@@ -0,0 +1,29 @@
+From 702a97fbb09bd7088a50f2b239016d1e32843c24 Mon Sep 17 00:00:00 2001
+From: Pavel Raiskup <praiskup@redhat.com>
+Date: Fri, 18 Sep 2015 10:36:43 +0200
+Subject: [PATCH] libtool: fix GCC linking with -specs=*
+
+References:
+https://bugzilla.redhat.com/show_bug.cgi?id=985592
+
+* build-aux/ltmain.in (func_mode_link): Pass -specs=*
+to the linker, Fedora uses this option for hardening.
+
+Signed-off-by: Pavel Raiskup <praiskup@redhat.com>
+
+--- ltmain.sh
++++ ltmain.sh
+@@ -7272,10 +7272,12 @@
+ # -tp=* Portland pgcc target processor selection
+ # --sysroot=* for sysroot support
+ # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
++ # -specs=* GCC specs files
+ # -stdlib=* select c++ std lib with clang
+ -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
+ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
+- -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*)
++ -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
++ -specs=*)
+ func_quote_for_eval "$arg"
+ arg=$func_quote_for_eval_result
+ func_append compile_command " $arg"