uClibc: add support for mips non-pic relocations in ldso
[openwrt/svn-archive/archive.git] / toolchain / gcc / patches / 4.3.3+cs / 001-no_mips_nonpic_default.patch
1 --- a/gcc/config/mips/linux.h
2 +++ b/gcc/config/mips/linux.h
3 @@ -75,8 +75,7 @@ along with GCC; see the file COPYING3.
4 %{static:-static}}}"
5
6 #undef SUBTARGET_ASM_SPEC
7 -#define SUBTARGET_ASM_SPEC \
8 - "%{mabi=64: -64} %{mabicalls:%{fpic|fPIC|fpie|fPIE:-KPIC;:-mnon-pic-abicalls}}"
9 +#define SUBTARGET_ASM_SPEC "%{mabi=64: -64} %{!mno-abicalls:-KPIC}"
10
11 /* The MIPS assembler has different syntax for .set. We set it to
12 .dummy to trap any errors. */
13 --- a/gcc/config/mips/linux64.h
14 +++ b/gcc/config/mips/linux64.h
15 @@ -28,7 +28,7 @@ NO_SHARED_SPECS \
16
17 #undef SUBTARGET_ASM_SPEC
18 #define SUBTARGET_ASM_SPEC "\
19 -%{mabicalls:%{fpic|fPIC|fpie|fPIE:-KPIC;:-mnon-pic-abicalls}} \
20 +%{!fno-PIC:%{!fno-pic:-KPIC}} \
21 %{fno-PIC:-non_shared} %{fno-pic:-non_shared}"
22
23 #undef LIB_SPEC