mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 08:51:13 +00:00
82572cf767
SVN-Revision: 10458
37 lines
1.5 KiB
Diff
37 lines
1.5 KiB
Diff
Index: gcc-4.2.0/gcc/config.gcc
|
|
===================================================================
|
|
--- gcc-4.2.0.orig/gcc/config.gcc 2008-02-13 00:19:06.507477329 +0100
|
|
+++ gcc-4.2.0/gcc/config.gcc 2008-02-13 00:19:42.239640606 +0100
|
|
@@ -701,7 +701,7 @@
|
|
extra_parts=""
|
|
use_collect2=yes
|
|
;;
|
|
-arm*-*-linux*) # ARM GNU/Linux with ELF
|
|
+arm*-linux*) # ARM GNU/Linux with ELF
|
|
tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h"
|
|
tmake_file="${tmake_file} t-linux arm/t-arm"
|
|
case ${target} in
|
|
@@ -710,7 +710,7 @@
|
|
;;
|
|
esac
|
|
case ${target} in
|
|
- arm*-*-linux-*eabi)
|
|
+ arm*-linux-*eabi)
|
|
tm_file="$tm_file arm/bpabi.h arm/linux-eabi.h"
|
|
tmake_file="$tmake_file arm/t-arm-elf arm/t-bpabi arm/t-linux-eabi"
|
|
# The BPABI long long divmod functions return a 128-bit value in
|
|
Index: gcc-4.2.0/gcc/config/arm/linux-eabi.h
|
|
===================================================================
|
|
--- gcc-4.2.0.orig/gcc/config/arm/linux-eabi.h 2008-02-13 00:18:31.343062422 +0100
|
|
+++ gcc-4.2.0/gcc/config/arm/linux-eabi.h 2008-02-13 00:19:11.825120518 +0100
|
|
@@ -48,7 +48,8 @@
|
|
#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm10tdmi
|
|
|
|
#undef SUBTARGET_EXTRA_LINK_SPEC
|
|
-#define SUBTARGET_EXTRA_LINK_SPEC " -m armelf_linux_eabi"
|
|
+#define SUBTARGET_EXTRA_LINK_SPEC \
|
|
+ " %{mbig-endian:-m armelfb_linux_eabi} %{mlittle-endian:-m armelf_linux_eabi} "
|
|
|
|
/* Use ld-linux.so.3 so that it will be possible to run "classic"
|
|
GNU/Linux binaries on an EABI system. */
|