summaryrefslogtreecommitdiff
path: root/toolchain/gcc/3.4.4/100-uclibc-conf.patch
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-09-22 03:29:59 +0000
committerMike Frysinger <vapier@gentoo.org>2005-09-22 03:29:59 +0000
commitc182c2e9ede80638e3752846cfbea8291c43eb01 (patch)
tree769697bb75920849bdb5a3ac67ac11866c7675f9 /toolchain/gcc/3.4.4/100-uclibc-conf.patch
parentfbd8ef5267e91ff5f5cf7b5ed97e15f51d4f63c4 (diff)
alpha support
Diffstat (limited to 'toolchain/gcc/3.4.4/100-uclibc-conf.patch')
-rw-r--r--toolchain/gcc/3.4.4/100-uclibc-conf.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/toolchain/gcc/3.4.4/100-uclibc-conf.patch b/toolchain/gcc/3.4.4/100-uclibc-conf.patch
index 22f3989f9..e966dc5dc 100644
--- a/toolchain/gcc/3.4.4/100-uclibc-conf.patch
+++ b/toolchain/gcc/3.4.4/100-uclibc-conf.patch
@@ -40,6 +40,19 @@ diff -urN gcc-3.4.1-dist/boehm-gc/ltconfig gcc-3.4.1/boehm-gc/ltconfig
netbsd*)
version_type=sunos
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
+--- gcc-3.4.4/gcc/config/alpha/linux-elf.h
++++ gcc-3.4.4/gcc/config/alpha/linux-elf.h
+ #define SUBTARGET_EXTRA_SPECS \
+ { "elf_dynamic_linker", ELF_DYNAMIC_LINKER },
+
++#if defined USE_UCLIBC
++#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
++#else
+ #define ELF_DYNAMIC_LINKER "/lib/ld-linux.so.2"
++#endif
+
+ #define LINK_SPEC "-m elf64alpha %{G*} %{relax:-relax} \
+ %{O*:-O3} %{!O*:-O1} \
diff -urN gcc-3.4.1-dist/gcc/config/arm/linux-elf.h gcc-3.4.1/gcc/config/arm/linux-elf.h
--- gcc-3.4.1-dist/gcc/config/arm/linux-elf.h 2004-01-31 00:18:11.000000000 -0600
+++ gcc-3.4.1/gcc/config/arm/linux-elf.h 2004-08-12 15:54:42.000000000 -0500
@@ -263,6 +276,19 @@ diff -urN gcc-3.4.1-dist/gcc/config/t-linux-uclibc gcc-3.4.1/gcc/config/t-linux-
diff -urN gcc-3.4.1-dist/gcc/config.gcc gcc-3.4.1/gcc/config.gcc
--- gcc-3.4.1-dist/gcc/config.gcc 2004-04-21 10:12:35.000000000 -0500
+++ gcc-3.4.1/gcc/config.gcc 2004-08-12 15:59:46.000000000 -0500
+@@ -568,7 +568,11 @@
+ alpha*-*-linux*)
+ tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
+ target_cpu_default="MASK_GAS"
+- tmake_file="t-slibgcc-elf-ver t-linux alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
++ tmake_file="t-slibgcc-elf-ver alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
++ case ${target} in
++ *-linux-uclibc*) tmake_file="${tmake_file} t-linux-uclibc" ;;
++ *) tmake_file="${tmake_file} t-linux" ;;
++ esac
+ ;;
+ alpha*-*-gnu*)
+ target_cpu_default="MASK_GAS"
@@ -664,6 +664,12 @@
extra_parts=""
use_collect2=yes