summaryrefslogtreecommitdiff
path: root/debian/patches/gcc-hash-style-both.diff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2019-11-18 15:53:29 +0300
committerIgor Pashev <pashev.igor@gmail.com>2019-11-18 15:53:29 +0300
commit8f6c4b0033c72f8ac14694c419a99458339dd6a9 (patch)
tree06c106e622a58100aa85a381b9b65d222b076df4 /debian/patches/gcc-hash-style-both.diff
parent42156b5190f4fa150e1fab6777eb81e69d4db8c9 (diff)
downloadgcc-9-8f6c4b0033c72f8ac14694c419a99458339dd6a9.tar.gz
Import gcc-9 (9.2.1-19)debian/9.2.1-19debian
Diffstat (limited to 'debian/patches/gcc-hash-style-both.diff')
-rw-r--r--debian/patches/gcc-hash-style-both.diff20
1 files changed, 18 insertions, 2 deletions
diff --git a/debian/patches/gcc-hash-style-both.diff b/debian/patches/gcc-hash-style-both.diff
index 175abe8..f0af163 100644
--- a/debian/patches/gcc-hash-style-both.diff
+++ b/debian/patches/gcc-hash-style-both.diff
@@ -1,4 +1,4 @@
-# DP: Link using --hash-style=both (alpha, amd64, armel, armhf, ia64, i386, powerpc, ppc64, s390, sparc)
+# DP: Link using --hash-style=both (alpha, amd64, armel, armhf, ia64, i386, powerpc, ppc64, riscv64, s390, sparc)
2006-07-11 Jakub Jelinek <jakub@redhat.com>
@@ -21,7 +21,11 @@
2012-11-17 Matthias Klose <doko@ubuntu.com>
* config/aarch64/aarch64-linux.h (LINK_SPEC): Add --hash-style=both.
-
+
+2018-03-02 Aurelien Jarno <aurelien@aurel32.net>
+
+ * config/riscv/linux.h (LINK_SPEC): Add --hash-style=both.
+
---
gcc/config/alpha/linux-elf.h | 2 +-
gcc/config/i386/linux.h | 2 +-
@@ -165,3 +169,15 @@ Index: b/src/gcc/config/aarch64/aarch64-linux.h
%{static:-Bstatic} \
%{shared:-shared} \
%{symbolic:-Bsymbolic} \
+Index: b/src/gcc/config/riscv/linux.h
+===================================================================
+--- a/src/gcc/config/riscv/linux.h
++++ b/src/gcc/config/riscv/linux.h
+@@ -50,6 +50,7 @@
+ #define CPP_SPEC "%{pthread:-D_REENTRANT}"
+
+ #define LINK_SPEC "\
++-hash-style=both \
+ -melf" XLEN_SPEC "lriscv \
+ %{shared} \
+ {!shared: \