diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-07-12 18:54:30 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-07-12 18:54:30 +0000 |
commit | ab38344deb77f58e90331474f5e43b29068dfebc (patch) | |
tree | 934ec96ca09fed736219ae4a80b309f63ff7b3be /toolchain/musl/patches/010-Add-PowerPC-soft-float-support.patch | |
parent | 738abb1239cde143c2e2882244222d2cdd5e9ee0 (diff) | |
download | master-187ad058-ab38344deb77f58e90331474f5e43b29068dfebc.tar.gz master-187ad058-ab38344deb77f58e90331474f5e43b29068dfebc.tar.bz2 master-187ad058-ab38344deb77f58e90331474f5e43b29068dfebc.zip |
gcc: use the -sf suffix for musl ldso on powerpc
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46313 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain/musl/patches/010-Add-PowerPC-soft-float-support.patch')
-rw-r--r-- | toolchain/musl/patches/010-Add-PowerPC-soft-float-support.patch | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/toolchain/musl/patches/010-Add-PowerPC-soft-float-support.patch b/toolchain/musl/patches/010-Add-PowerPC-soft-float-support.patch index 7dfb7ed019..4ed0ade3fa 100644 --- a/toolchain/musl/patches/010-Add-PowerPC-soft-float-support.patch +++ b/toolchain/musl/patches/010-Add-PowerPC-soft-float-support.patch @@ -7,8 +7,7 @@ instruction set for floating point operations (SPE). Executing regular PowerPC floating point instructions results in "Illegal instruction" errors. -Until support for SPE FPU is added, make it possible to run these -devices in soft-float mode. +Make it possible to run these devices in soft-float mode. Signed-off-by: Felix Fietkau <nbd@openwrt.org> --- @@ -18,6 +17,20 @@ Signed-off-by: Felix Fietkau <nbd@openwrt.org> create mode 100644 src/setjmp/powerpc-sf/setjmp.s create mode 100644 src/setjmp/powerpc-sf/setjmp.sub +--- a/arch/powerpc/reloc.h ++++ b/arch/powerpc/reloc.h +@@ -1,4 +1,10 @@ +-#define LDSO_ARCH "powerpc" ++#ifdef _SOFT_FLOAT ++#define FP_SUFFIX "-sf" ++#else ++#define FP_SUFFIX "" ++#endif ++ ++#define LDSO_ARCH "powerpc" FP_SUFFIX + + #define TPOFF_K (-0x7000) + --- a/configure +++ b/configure @@ -498,6 +498,10 @@ trycppif "_MIPSEL || __MIPSEL || __MIPSE |