summaryrefslogtreecommitdiffstats
path: root/0034-libstdc-use-a-link-test-to-test-for-Wl-z-relro.patch
diff options
context:
space:
mode:
Diffstat (limited to '0034-libstdc-use-a-link-test-to-test-for-Wl-z-relro.patch')
-rw-r--r--0034-libstdc-use-a-link-test-to-test-for-Wl-z-relro.patch38
1 files changed, 0 insertions, 38 deletions
diff --git a/0034-libstdc-use-a-link-test-to-test-for-Wl-z-relro.patch b/0034-libstdc-use-a-link-test-to-test-for-Wl-z-relro.patch
deleted file mode 100644
index c81923c..0000000
--- a/0034-libstdc-use-a-link-test-to-test-for-Wl-z-relro.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-From 5d7541c13423bfc7457400dd9b48c92ec46dac96 Mon Sep 17 00:00:00 2001
-From: Jonathan Yong <10walls@gmail.com>
-Date: Sun, 22 Mar 2020 09:59:37 +0800
-Subject: [PATCH 34/35] libstdc++: use a link test to test for -Wl,-z,relro
-
-Do a link test instead of just a grep. The linker can
-support multiple targets, but not all targets can use it.
-
-Signed-off-by: Jonathan Yong <10walls@gmail.com>
----
- libstdc++-v3/acinclude.m4 | 11 ++++++++++-
- 1 file changed, 10 insertions(+), 1 deletion(-)
-
-diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4
-index 192ecab..d5e0e5e 100644
---- a/libstdc++-v3/acinclude.m4
-+++ b/libstdc++-v3/acinclude.m4
-@@ -274,7 +274,16 @@ AC_DEFUN([GLIBCXX_CHECK_LINKER_FEATURES], [
- ac_ld_relro=no
- if test x"$with_gnu_ld" = x"yes"; then
- AC_MSG_CHECKING([for ld that supports -Wl,-z,relro])
-- cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
-+ ac_save_ldflags="$LDFLAGS"
-+ LDFLAGS="$LDFLAGS -Wl,-z,relro"
-+ AC_LINK_IFELSE([
-+ AC_LANG_SOURCE(
-+ [[int main() { return 0; }]]
-+ )],
-+ [cxx_z_relo="1"],
-+ [cxx_z_relo=""])
-+ LDFLAGS="$ac_save_ldflags"
-+
- if test -n "$cxx_z_relo"; then
- OPT_LDFLAGS="-Wl,-z,relro"
- ac_ld_relro=yes
---
-2.21.0
-