1 2012-05-01 Richard Earnshaw <rearnsha@arm.com>
3 * arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_DEFAULT): Avoid ifdef
4 comparing enumeration values. Update comments.
6 2012-04-26 Michael Hope <michael.hope@linaro.org>
7 Richard Earnshaw <rearnsha@arm.com>
9 * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
10 (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define.
11 (GLIBC_DYNAMIC_LINKER_DEFAULT): Define.
12 (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path.
14 --- gcc/config/arm/linux-eabi.h (revision 186858)
15 +++ gcc/config/arm/linux-eabi.h (revision 187012)
19 /* We default to a soft-float ABI so that binaries can run on all
21 + target hardware. If you override this to use the hard-float ABI then
22 + change the setting of GLIBC_DYNAMIC_LINKER_DEFAULT as well. */
23 #undef TARGET_DEFAULT_FLOAT_ABI
24 #define TARGET_DEFAULT_FLOAT_ABI ARM_FLOAT_ABI_SOFT
27 #undef SUBTARGET_EXTRA_LINK_SPEC
28 #define SUBTARGET_EXTRA_LINK_SPEC " -m " TARGET_LINKER_EMULATION
30 -/* Use ld-linux.so.3 so that it will be possible to run "classic"
31 - GNU/Linux binaries on an EABI system. */
32 +/* GNU/Linux on ARM currently supports three dynamic linkers:
33 + - ld-linux.so.2 - for the legacy ABI
34 + - ld-linux.so.3 - for the EABI-derived soft-float ABI
35 + - ld-linux-armhf.so.3 - for the EABI-derived hard-float ABI.
36 + All the dynamic linkers live in /lib.
37 + We default to soft-float, but this can be overridden by changing both
38 + GLIBC_DYNAMIC_LINKER_DEFAULT and TARGET_DEFAULT_FLOAT_ABI. */
40 #undef GLIBC_DYNAMIC_LINKER
41 -#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.3"
42 +#define GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "/lib/ld-linux.so.3"
43 +#define GLIBC_DYNAMIC_LINKER_HARD_FLOAT "/lib/ld-linux-armhf.so.3"
44 +#define GLIBC_DYNAMIC_LINKER_DEFAULT GLIBC_DYNAMIC_LINKER_SOFT_FLOAT
46 +#define GLIBC_DYNAMIC_LINKER \
47 + "%{mfloat-abi=hard:" GLIBC_DYNAMIC_LINKER_HARD_FLOAT "} \
48 + %{mfloat-abi=soft*:" GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "} \
49 + %{!mfloat-abi=*:" GLIBC_DYNAMIC_LINKER_DEFAULT "}"
51 /* At this point, bpabi.h will have clobbered LINK_SPEC. We want to
52 use the GNU/Linux version, not the generic BPABI version. */