summaryrefslogtreecommitdiff
path: root/toolchain/gcc/patches/llvm/930-eabi_fixes.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-10-10 19:25:48 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-10-10 19:25:48 +0000
commit215ccb66e6abdaed0a41582d6b8c40ffa340eea7 (patch)
treee8ecd7ecc708bda6515831abaffbcb8d9ee65d5f /toolchain/gcc/patches/llvm/930-eabi_fixes.patch
parentb49cdabd4ae2c0239dc12eda5e1b7a21b9c2e5dc (diff)
downloadmtk-20170518-215ccb66e6abdaed0a41582d6b8c40ffa340eea7.zip
mtk-20170518-215ccb66e6abdaed0a41582d6b8c40ffa340eea7.tar.gz
mtk-20170518-215ccb66e6abdaed0a41582d6b8c40ffa340eea7.tar.bz2
gcc: add llvm-gcc and llvm from trunk (does not successfully compile a target yet, but gets close)
SVN-Revision: 18019
Diffstat (limited to 'toolchain/gcc/patches/llvm/930-eabi_fixes.patch')
-rw-r--r--toolchain/gcc/patches/llvm/930-eabi_fixes.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/llvm/930-eabi_fixes.patch b/toolchain/gcc/patches/llvm/930-eabi_fixes.patch
new file mode 100644
index 0000000..10d879c
--- /dev/null
+++ b/toolchain/gcc/patches/llvm/930-eabi_fixes.patch
@@ -0,0 +1,32 @@
+--- a/gcc/config.gcc
++++ b/gcc/config.gcc
+@@ -760,7 +760,7 @@ arm*-*-netbsd*)
+ 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
+@@ -769,7 +769,7 @@ arm*-*-linux*) # ARM GNU/Linux with EL
+ ;;
+ 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
+--- a/gcc/config/arm/linux-eabi.h
++++ b/gcc/config/arm/linux-eabi.h
+@@ -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. */