diff options
author | nsz <nsz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-10-15 19:12:15 +0000 |
---|---|---|
committer | nsz <nsz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-10-15 19:12:15 +0000 |
commit | d9fee04fd979603c175d7125571460913da0e042 (patch) | |
tree | 72145932c17d6e3ca437a087f78c344f55e2a0f7 /gcc/config/microblaze | |
parent | fa97695d2b5eef9bdb1d1628a2c6ce0b0ca180b3 (diff) | |
download | gcc-d9fee04fd979603c175d7125571460913da0e042.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228850 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/microblaze')
-rw-r--r-- | gcc/config/microblaze/linux.h | 14 |
1 files changed, 12 insertions, 2 deletions
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} \ |