[backfire] toolchain: fix gcc 3.4.6 (brcm-2.4) after relocation from usr/, refresh...
[openwrt/svn-archive/archive.git] / toolchain / gcc / patches / 3.4.6 / 810-arm-bigendian-uclibc.patch
1 --- a/gcc/config/arm/linux-elf.h
2 +++ b/gcc/config/arm/linux-elf.h
3 @@ -107,7 +107,7 @@
4 %{rdynamic:-export-dynamic} \
5 %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0} \
6 -X \
7 - %{mbig-endian:-EB}" \
8 + %{mbig-endian:-EB} %{mlittle-endian:-EL}" \
9 SUBTARGET_EXTRA_LINK_SPEC
10 #else
11 #define LINK_SPEC "%{h*} %{version:-v} \
12 --- a/gcc/config.gcc
13 +++ b/gcc/config.gcc
14 @@ -678,6 +678,11 @@ arm*-*-netbsd*)
15 ;;
16 arm*-*-linux-uclibc*) # ARM GNU/Linux with ELF - uClibc
17 tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h arm/aout.h arm/arm.h"
18 + case $target in
19 + arm*b-*)
20 + tm_defines="TARGET_BIG_ENDIAN_DEFAULT=1 $tm_defines"
21 + ;;
22 + esac
23 tmake_file="t-slibgcc-elf-ver t-linux-uclibc arm/t-linux"
24 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
25 gnu_ld=yes