microblaze musl support
authornsz <nsz@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Oct 2015 19:12:15 +0000 (19:12 +0000)
committernsz <nsz@138bc75d-0d04-0410-961f-82ee72b054a4>
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228850 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 73695e2..fbe7fab 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 655a70f..a8a3f3e 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} \