microblaze musl support
authorGregor Richards <gregor.richards@uwaterloo.ca>
Thu, 15 Oct 2015 19:12:15 +0000 (19:12 +0000)
committerSzabolcs Nagy <nsz@gcc.gnu.org>
Thu, 15 Oct 2015 19:12:15 +0000 (19:12 +0000)
* 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 <szabolcs.nagy@arm.com>
From-SVN: r228850

gcc/ChangeLog
gcc/config/microblaze/linux.h

index 73695e254fa438cc7b407b0d4fdb4e6caa5a6d84..fbe7fabcb1573494dfe84d3026343d82ffc1a14c 100644 (file)
@@ -1,3 +1,11 @@
+2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
+           Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       * 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  <polacek@redhat.com>
 
        * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
index 655a70ffad2cea87a39ee35d842851f586ea92bd..a8a3f3e3bd73f0d43c9063556a7520c1cf8a8a78 100644 (file)
 #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} \