Backport to gcc9: Enable big-endian suffixed dynamic linker per glibc multi-abi support.
And to avoid a future churn and version pairingi hassles, also allow arc700 although glibc for ARC currently doesn't support it. gcc/ xxxx-xx-xx Vineet Gupta <vgu...@synopsys.com> * config/arc/linux.h: GLIBC_DYNAMIC_LINKER support BE/arc700 --- gcc/ChangeLog | 6 ++++++ gcc/config/arc/linux.h | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 836a20f79d1..be4384eb0ef 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2020-04-10 Claudiu Zissulescu <claz...@synopsys.com> + + Backport from trunk + 2020-0-31 Vineet Gupta <vgu...@synopsys.com> + * config/arc/linux.h: GLIBC_DYNAMIC_LINKER support BE/arc700. + 2020-04-09 Michael Meissner <meiss...@linux.ibm.com> Back port from trunk diff --git a/gcc/config/arc/linux.h b/gcc/config/arc/linux.h index 270ca907d87..7d07adc4257 100644 --- a/gcc/config/arc/linux.h +++ b/gcc/config/arc/linux.h @@ -29,7 +29,8 @@ along with GCC; see the file COPYING3. If not see } \ while (0) -#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-arc.so.2" +#define GLIBC_DYNAMIC_LINKER \ + "/lib/ld-linux-arc%{mbig-endian:eb}%{mcpu=arc700:700}.so.2" #define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0" /* Note that the default is to link against dynamic libraries, if they are -- 2.24.1