]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - gcc/patches/gcc-4.7-arm-hfp-ldso.patch0
2f0b8c433c1ab45af420484ffefdf9b972653ade
[people/ms/ipfire-3.x.git] / gcc / patches / gcc-4.7-arm-hfp-ldso.patch0
1 2012-05-01 Richard Earnshaw <rearnsha@arm.com>
2
3 * arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_DEFAULT): Avoid ifdef
4 comparing enumeration values. Update comments.
5
6 2012-04-26 Michael Hope <michael.hope@linaro.org>
7 Richard Earnshaw <rearnsha@arm.com>
8
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.
13
14 --- gcc/config/arm/linux-eabi.h (revision 186858)
15 +++ gcc/config/arm/linux-eabi.h (revision 187012)
16 @@ -32,7 +32,8 @@
17 while (false)
18
19 /* We default to a soft-float ABI so that binaries can run on all
20 - target hardware. */
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
25
26 @@ -59,10 +60,23 @@
27 #undef SUBTARGET_EXTRA_LINK_SPEC
28 #define SUBTARGET_EXTRA_LINK_SPEC " -m " TARGET_LINKER_EMULATION
29
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. */
39 +
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
45 +
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 "}"
50
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. */