aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKito Cheng <kito.cheng@gmail.com>2019-02-04 09:00:24 +0000
committerChung-Ju Wu <jasonwucj@gcc.gnu.org>2019-02-04 09:00:24 +0000
commit1c944e16f06b3c606b49e0c6a276a2a472418951 (patch)
treea8c0b0e59656b6af4ef1bde526cf886a138e2d20 /gcc
parentf874089d310d9d3996a56b577245cb97d1430266 (diff)
downloadgcc-1c944e16f06b3c606b49e0c6a276a2a472418951.zip
gcc-1c944e16f06b3c606b49e0c6a276a2a472418951.tar.gz
gcc-1c944e16f06b3c606b49e0c6a276a2a472418951.tar.bz2
[NDS32] Change naming rule for dyanmic linker.
gcc/ * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule of the dynamic linker: "ld-linux-nds32[le|be][f].so.1". From-SVN: r268512
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/nds32/linux.h20
2 files changed, 24 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index da8106b..04288c8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2019-02-04 Kito Cheng <kito.cheng@gmail.com>
+
+ * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
+ of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
+
2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
* config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
diff --git a/gcc/config/nds32/linux.h b/gcc/config/nds32/linux.h
index 36579d0..7fc1b37 100644
--- a/gcc/config/nds32/linux.h
+++ b/gcc/config/nds32/linux.h
@@ -36,7 +36,25 @@
} \
while (0)
-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
+#ifdef TARGET_BIG_ENDIAN_DEFAULT
+#define LD_SO_ENDIAN_SPEC "%{mlittle-endian:le}%{!mlittle-endian:be}"
+#else
+#define LD_SO_ENDIAN_SPEC "%{mbig-endian:be}%{!mbig-endian:le}"
+#endif
+
+/* Record arch version in TARGET_ARCH_DEFAULT.
+ 0 means soft ABI;
+ 1 means hard ABI and using full floating-point instruction;
+ 2 means hard ABI and only using single-precision floating-point
+ instruction. */
+#if TARGET_ARCH_DEFAULT
+#define LD_SO_ABI_SPEC "%{!mabi=2:f}"
+#else
+#define LD_SO_ABI_SPEC "%{mabi=2fp+:f}"
+#endif
+
+#define GLIBC_DYNAMIC_LINKER \
+ "/lib/ld-linux-nds32" LD_SO_ENDIAN_SPEC LD_SO_ABI_SPEC ".so.1"
/* In the configure stage we may use options --enable-default-relax,
--enable-Os-default-ifc and --enable-Os-default-ex9. They effect