diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-10-19 04:26:28 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-10-19 04:26:28 +0000 |
commit | 6e1290c8d1a9abc3346bf0d73f4bb1af5d096c77 (patch) | |
tree | 255dcbcb4de1ff90d0f3ed3a50979e546281073d /toolchain | |
parent | 61895aec8ac314bbc1703efbb66813e1fbd93bae (diff) | |
download | master-187ad058-6e1290c8d1a9abc3346bf0d73f4bb1af5d096c77.tar.gz master-187ad058-6e1290c8d1a9abc3346bf0d73f4bb1af5d096c77.tar.bz2 master-187ad058-6e1290c8d1a9abc3346bf0d73f4bb1af5d096c77.zip |
gcc: disable mips non-PIC ABI calls in the codesourcery based version by default, as our binutils version does not support it
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18064 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain')
-rw-r--r-- | toolchain/gcc/patches/4.3.3+cs/001-no_mips_nonpic_default.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/4.3.3+cs/001-no_mips_nonpic_default.patch b/toolchain/gcc/patches/4.3.3+cs/001-no_mips_nonpic_default.patch new file mode 100644 index 0000000000..cf6503b793 --- /dev/null +++ b/toolchain/gcc/patches/4.3.3+cs/001-no_mips_nonpic_default.patch @@ -0,0 +1,23 @@ +--- a/gcc/config/mips/linux.h ++++ b/gcc/config/mips/linux.h +@@ -75,8 +75,7 @@ along with GCC; see the file COPYING3. + %{static:-static}}}" + + #undef SUBTARGET_ASM_SPEC +-#define SUBTARGET_ASM_SPEC \ +- "%{mabi=64: -64} %{mabicalls:%{fpic|fPIC|fpie|fPIE:-KPIC;:-mnon-pic-abicalls}}" ++#define SUBTARGET_ASM_SPEC "%{mabi=64: -64} %{!mno-abicalls:-KPIC}" + + /* The MIPS assembler has different syntax for .set. We set it to + .dummy to trap any errors. */ +--- a/gcc/config/mips/linux64.h ++++ b/gcc/config/mips/linux64.h +@@ -28,7 +28,7 @@ NO_SHARED_SPECS \ + + #undef SUBTARGET_ASM_SPEC + #define SUBTARGET_ASM_SPEC "\ +-%{mabicalls:%{fpic|fPIC|fpie|fPIE:-KPIC;:-mnon-pic-abicalls}} \ ++%{!fno-PIC:%{!fno-pic:-KPIC}} \ + %{fno-PIC:-non_shared} %{fno-pic:-non_shared}" + + #undef LIB_SPEC |