From: Gregor Richards Date: Thu, 15 Oct 2015 19:12:15 +0000 (+0000) Subject: microblaze musl support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9418279db60955fac838eb1a9f2cdedb9f7f66ba;p=gcc.git microblaze musl support * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define. (DYNAMIC_LINKER): Renamed to ... (GLIBC_DYNAMIC_LINKER): This. (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER. Co-Authored-By: Szabolcs Nagy From-SVN: r228850 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 73695e254fa..fbe7fabcb15 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2015-10-15 Gregor Richards + Szabolcs Nagy + + * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define. + (DYNAMIC_LINKER): Renamed to ... + (GLIBC_DYNAMIC_LINKER): This. + (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER. + 2015-10-15 Marek Polacek * tree-ssa-reassoc.c (attempt_builtin_copysign): Call diff --git a/gcc/config/microblaze/linux.h b/gcc/config/microblaze/linux.h index 655a70ffad2..a8a3f3e3bd7 100644 --- a/gcc/config/microblaze/linux.h +++ b/gcc/config/microblaze/linux.h @@ -28,10 +28,20 @@ #undef TLS_NEEDS_GOT #define TLS_NEEDS_GOT 1 -#define DYNAMIC_LINKER "/lib/ld.so.1" +#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1" + +#if TARGET_BIG_ENDIAN_DEFAULT == 0 /* LE */ +#define MUSL_DYNAMIC_LINKER_E "%{mbig-endian:;:el}" +#else +#define MUSL_DYNAMIC_LINKER_E "%{mlittle-endian:el}" +#endif + +#undef MUSL_DYNAMIC_LINKER +#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-microblaze" MUSL_DYNAMIC_LINKER_E ".so.1" + #undef SUBTARGET_EXTRA_SPECS #define SUBTARGET_EXTRA_SPECS \ - { "dynamic_linker", DYNAMIC_LINKER } + { "dynamic_linker", GNU_USER_DYNAMIC_LINKER } #undef LINK_SPEC #define LINK_SPEC "%{shared:-shared} \