On 21/04/15 15:16, [email protected] wrote:
>
> I don't think you need to check if defaulting to little or big-endian here
> are the specs always have one or the other passing through.
>
> Also if musl does not support ilp32, you might want to error out. Or even
> define the dynamic linker name even before support goes into musl.
>
Patch v2.
(now _ilp32 abi variant is included too)
gcc/Changelog:
2015-04-27 Gregor Richards <[email protected]>
Szabolcs Nagy <[email protected]>
* config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
diff --git a/gcc/config/aarch64/aarch64-linux.h b/gcc/config/aarch64/aarch64-linux.h
index 9abb252..2d647c3 100644
--- a/gcc/config/aarch64/aarch64-linux.h
+++ b/gcc/config/aarch64/aarch64-linux.h
@@ -23,6 +23,9 @@
#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1"
+#undef MUSL_DYNAMIC_LINKER
+#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1"
+
#undef ASAN_CC1_SPEC
#define ASAN_CC1_SPEC "%{%:sanitize(address):-funwind-tables}"