1 From: ktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>
2 Date: Wed, 27 May 2015 13:17:11 +0000 (+0000)
3 Subject: [PATCH 4/13] arm musl support
4 X-Git-Url: https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff_plain;h=de799bd087ab9a179768fea75bd195a31d3432a4
6 [PATCH 4/13] arm musl support
8 On behalf of szabolcs.nagy@arm.com
10 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
12 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
15 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223749 138bc75d-0d04-0410-961f-82ee72b054a4
18 Index: b/gcc/config/arm/linux-eabi.h
19 ===================================================================
20 --- a/gcc/config/arm/linux-eabi.h
21 +++ b/gcc/config/arm/linux-eabi.h
23 %{mfloat-abi=soft*:" GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "} \
24 %{!mfloat-abi=*:" GLIBC_DYNAMIC_LINKER_DEFAULT "}"
26 +/* For ARM musl currently supports four dynamic linkers:
27 + - ld-musl-arm.so.1 - for the EABI-derived soft-float ABI
28 + - ld-musl-armhf.so.1 - for the EABI-derived hard-float ABI
29 + - ld-musl-armeb.so.1 - for the EABI-derived soft-float ABI, EB
30 + - ld-musl-armebhf.so.1 - for the EABI-derived hard-float ABI, EB
31 + musl does not support the legacy OABI mode.
32 + All the dynamic linkers live in /lib.
33 + We default to soft-float, EL. */
34 +#undef MUSL_DYNAMIC_LINKER
35 +#if TARGET_BIG_ENDIAN_DEFAULT
36 +#define MUSL_DYNAMIC_LINKER_E "%{mlittle-endian:;:eb}"
38 +#define MUSL_DYNAMIC_LINKER_E "%{mbig-endian:eb}"
40 +#define MUSL_DYNAMIC_LINKER \
41 + "/lib/ld-musl-arm" MUSL_DYNAMIC_LINKER_E "%{mfloat-abi=hard:hf}.so.1"
43 /* At this point, bpabi.h will have clobbered LINK_SPEC. We want to
44 use the GNU/Linux version, not the generic BPABI version. */