X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=toolchain%2Fmusl%2Fpatches%2F010-Add-PowerPC-soft-float-support.patch;h=195c93337f1141418bdc63d857da81c22b7c6caf;hb=a2a2dcadc0f13ede420edb8b332bdd91682bda8d;hp=7dfb7ed0196abcce9d835bd0fb1ef0f0e6a1d21a;hpb=b33bf4f876441772322a7e066ec5e0d7af740235;p=openwrt-github%2F.git 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..195c93337f 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 --- @@ -18,9 +17,23 @@ Signed-off-by: Felix Fietkau 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 +@@ -538,6 +538,10 @@ trycppif "_MIPSEL || __MIPSEL || __MIPSE trycppif __mips_soft_float "$t" && SUBARCH=${SUBARCH}-sf fi