From: Kito Cheng Date: Mon, 4 Feb 2019 09:00:24 +0000 (+0000) Subject: [NDS32] Change naming rule for dyanmic linker. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1c944e16f06b3c606b49e0c6a276a2a472418951;p=gcc.git [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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index da8106ba36d..04288c878c0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-02-04 Kito Cheng + + * 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 * 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 36579d05709..7fc1b374611 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