From 4fb0c302e0809c1f88a8573e87ce46da1d821a8f Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Wed, 28 Oct 2009 18:55:40 +0100 Subject: config: rip-out versions marked as OBSOLETE --- config/binutils/binutils.in | 12 ---------- config/cc/gcc.in | 48 --------------------------------------- config/debug/dmalloc.in | 6 ----- config/debug/gdb.in | 12 ---------- config/debug/strace.in | 12 ---------- config/kernel/linux.in | 55 --------------------------------------------- config/libc/uClibc.in | 18 --------------- 7 files changed, 163 deletions(-) (limited to 'config') diff --git a/config/binutils/binutils.in b/config/binutils/binutils.in index 9d506b5d..0900085c 100644 --- a/config/binutils/binutils.in +++ b/config/binutils/binutils.in @@ -91,16 +91,6 @@ config BINUTILS_V_2_16_1 bool prompt "2.16.1" -config BINUTILS_V_2_15 - bool - prompt "2.15 (OBSOLETE)" - depends on OBSOLETE - -config BINUTILS_V_2_14 - bool - prompt "2.14 (OBSOLETE)" - depends on OBSOLETE - endchoice config BINUTILS_VERSION @@ -124,8 +114,6 @@ config BINUTILS_VERSION default "2.18" if BINUTILS_V_2_18 default "2.17" if BINUTILS_V_2_17 default "2.16.1" if BINUTILS_V_2_16_1 - default "2.15" if BINUTILS_V_2_15 - default "2.14" if BINUTILS_V_2_14 config BINUTILS_EXTRA_CONFIG string diff --git a/config/cc/gcc.in b/config/cc/gcc.in index d4792723..e5314a6e 100644 --- a/config/cc/gcc.in +++ b/config/cc/gcc.in @@ -83,55 +83,15 @@ config CC_V_4_1_2 bool prompt "4.1.2" -config CC_V_4_1_1 - bool - prompt "4.1.1 (OBSOLETE)" - depends on OBSOLETE - -config CC_V_4_1_0 - bool - prompt "4.1.0 (OBSOLETE)" - depends on OBSOLETE - config CC_V_4_0_4 bool prompt "4.0.4" -config CC_V_4_0_3 - bool - prompt "4.0.3 (OBSOLETE)" - depends on OBSOLETE - -config CC_V_4_0_2 - bool - prompt "4.0.2 (OBSOLETE)" - depends on OBSOLETE - -config CC_V_4_0_1 - bool - prompt "4.0.1 (OBSOLETE)" - depends on OBSOLETE - -config CC_V_4_0_0 - bool - prompt "4.0.0 (OBSOLETE)" - depends on OBSOLETE - config CC_V_3_4_6 bool prompt "3.4.6 (OBSOLETE)" depends on OBSOLETE -config CC_V_3_3_6 - bool - prompt "3.3.6 (OBSOLETE)" - depends on OBSOLETE - -config CC_V_3_2_3 - bool - prompt "3.2.3 (OBSOLETE)" - depends on OBSOLETE - endchoice config CC_GCC_4_3_or_later @@ -161,16 +121,8 @@ config CC_VERSION default "4.2.1" if CC_V_4_2_1 default "4.2.0" if CC_V_4_2_0 default "4.1.2" if CC_V_4_1_2 - default "4.1.1" if CC_V_4_1_1 - default "4.1.0" if CC_V_4_1_0 default "4.0.4" if CC_V_4_0_4 - default "4.0.3" if CC_V_4_0_3 - default "4.0.2" if CC_V_4_0_2 - default "4.0.1" if CC_V_4_0_1 - default "4.0.0" if CC_V_4_0_0 default "3.4.6" if CC_V_3_4_6 - default "3.3.6" if CC_V_3_3_6 - default "3.2.3" if CC_V_3_2_3 config CC_CXA_ATEXIT bool diff --git a/config/debug/dmalloc.in b/config/debug/dmalloc.in index 7e026d03..fa6bdbda 100644 --- a/config/debug/dmalloc.in +++ b/config/debug/dmalloc.in @@ -13,11 +13,6 @@ config DMALLOC_V_5_5_2 bool prompt "5.5.2" -config DMALLOC_V_5_4_3 - bool - prompt "5.4.3 (OBSOLETE)" - depends on OBSOLETE - endchoice config DMALLOC_VERSION @@ -25,4 +20,3 @@ config DMALLOC_VERSION # Don't remove next line # CT_INSERT_VERSION_STRING_BELOW default "5.5.2" if DMALLOC_V_5_5_2 - default "5.4.3" if DMALLOC_V_5_4_3 diff --git a/config/debug/gdb.in b/config/debug/gdb.in index b5673352..19414082 100644 --- a/config/debug/gdb.in +++ b/config/debug/gdb.in @@ -117,16 +117,6 @@ config GDB_V_6_6 bool prompt "6.6" -config GDB_V_6_5 - bool - prompt "6.5 (OBSOLETE)" - depends on OBSOLETE - -config GDB_V_6_4 - bool - prompt "6.4 (OBSOLETE)" - depends on OBSOLETE - config GDB_V_snapshot bool prompt "snapshot (EXPERIMENTAL)" @@ -143,8 +133,6 @@ config GDB_VERSION default "6.7.1" if GDB_V_6_7_1 default "6.7" if GDB_V_6_7 default "6.6" if GDB_V_6_6 - default "6.5" if GDB_V_6_5 - default "6.4" if GDB_V_6_4 default "snapshot" if GDB_V_snapshot if GDB_NATIVE diff --git a/config/debug/strace.in b/config/debug/strace.in index 4fcaa735..8f6ce0de 100644 --- a/config/debug/strace.in +++ b/config/debug/strace.in @@ -25,16 +25,6 @@ config STRACE_V_4_5_15 bool prompt "4.5.15" -config STRACE_V_4_5_14 - bool - prompt "4.5.14 (OBSOLETE)" - depends on OBSOLETE - -config STRACE_V_4_5 - bool - prompt "4.5 (OBSOLETE)" - depends on OBSOLETE - endchoice config STRACE_VERSION @@ -45,5 +35,3 @@ config STRACE_VERSION default "4.5.17" if STRACE_V_4_5_17 default "4.5.16" if STRACE_V_4_5_16 default "4.5.15" if STRACE_V_4_5_15 - default "4.5.14" if STRACE_V_4_5_14 - default "4.5" if STRACE_V_4_5 diff --git a/config/kernel/linux.in b/config/kernel/linux.in index 34c54225..e5792c55 100644 --- a/config/kernel/linux.in +++ b/config/kernel/linux.in @@ -90,51 +90,6 @@ config KERNEL_V_2_6_27_35 bool prompt "2.6.27.35 (long-term stable)" -config KERNEL_V_2_6_26_8 - bool - prompt "2.6.26.8 (OBSOLETE)" - depends on OBSOLETE - -config KERNEL_V_2_6_25_20 - bool - prompt "2.6.25.20 (OBSOLETE)" - depends on OBSOLETE - -config KERNEL_V_2_6_24_7 - bool - prompt "2.6.24.7 (OBSOLETE)" - depends on OBSOLETE - -config KERNEL_V_2_6_23_17 - bool - prompt "2.6.23.17 (OBSOLETE)" - depends on OBSOLETE - -config KERNEL_V_2_6_22_19 - bool - prompt "2.6.22.19 (OBSOLETE)" - depends on OBSOLETE - -config KERNEL_V_2_6_21_7 - bool - prompt "2.6.21.7 (OBSOLETE)" - depends on OBSOLETE - -config KERNEL_V_2_6_20_21 - bool - prompt "2.6.20.21 (OBSOLETE)" - depends on OBSOLETE - -config KERNEL_V_2_6_19_7 - bool - prompt "2.6.19.7 (OBSOLETE)" - depends on OBSOLETE - -config KERNEL_V_2_6_18_8 - bool - prompt "2.6.18.8 (OBSOLETE)" - depends on OBSOLETE - config KERNEL_V_select bool prompt "Other version (EXPERIMENTAL)" @@ -159,18 +114,8 @@ config KERNEL_VERSION default "2.6.30.1" if KERNEL_V_2_6_30_1 default "2.6.30" if KERNEL_V_2_6_30 default "2.6.29.6" if KERNEL_V_2_6_29_6 - default "2.6.29" if KERNEL_V_2_6_29 default "2.6.28.10" if KERNEL_V_2_6_28_10 default "2.6.27.35" if KERNEL_V_2_6_27_35 - default "2.6.26.8" if KERNEL_V_2_6_26_8 - default "2.6.25.20" if KERNEL_V_2_6_25_20 - default "2.6.24.7" if KERNEL_V_2_6_24_7 - default "2.6.23.17" if KERNEL_V_2_6_23_17 - default "2.6.22.19" if KERNEL_V_2_6_22_19 - default "2.6.21.7" if KERNEL_V_2_6_21_7 - default "2.6.20.21" if KERNEL_V_2_6_20_21 - default "2.6.19.7" if KERNEL_V_2_6_19_7 - default "2.6.18.8" if KERNEL_V_2_6_18_8 help Enter here the kernel version you want to use, if it is not listed above. Something like V.P.S or V.P.S.E, where: diff --git a/config/libc/uClibc.in b/config/libc/uClibc.in index 81c3b28f..dcaace34 100644 --- a/config/libc/uClibc.in +++ b/config/libc/uClibc.in @@ -32,21 +32,6 @@ config LIBC_V_0_9_28_3 bool prompt "0.9.28.3" -config LIBC_V_0_9_28_2 - bool - prompt "0.9.28.2 (OBSOLETE)" - depends on OBSOLETE - -config LIBC_V_0_9_28_1 - bool - prompt "0.9.28.1 (OBSOLETE)" - depends on OBSOLETE - -config LIBC_V_0_9_28 - bool - prompt "0.9.28 (OBSOLETE)" - depends on OBSOLETE - config LIBC_V_snapshot bool prompt "latest snapshot (EXPERIMENTAL)" @@ -68,9 +53,6 @@ config LIBC_VERSION default "0.9.30" if LIBC_V_0_9_30 default "0.9.29" if LIBC_V_0_9_29 default "0.9.28.3" if LIBC_V_0_9_28_3 - default "0.9.28.2" if LIBC_V_0_9_28_2 - default "0.9.28.1" if LIBC_V_0_9_28_1 - default "0.9.28" if LIBC_V_0_9_28 default "snapshot" if LIBC_V_snapshot config LIBC_UCLIBC_0_9_30_or_later -- cgit v1.2.3 From 6d9e9b45f81d81820d4511a4afe822c282c0dfc5 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Tue, 27 Oct 2009 20:06:07 +0100 Subject: config/binutils: remove obsolete experimental versions --- config/binutils/binutils.in | 72 ---------------------- .../2.18.50.0.4/100-arm-uclibcgnueabi.patch | 35 ----------- .../2.18.50.0.4/110-ld-makefile-path.patch | 35 ----------- .../2.18.50.0.4/120-check-ldrunpath-length.patch | 31 ---------- .../2.18.50.0.4/130-i386-no-divide-comment.patch | 69 --------------------- .../2.18.50.0.6/100-arm-uclibcgnueabi.patch | 30 --------- .../2.18.50.0.6/110-ld-makefile-path.patch | 30 --------- .../2.18.50.0.6/120-check-ldrunpath-length.patch | 26 -------- .../2.18.50.0.6/130-i386-no-divide-comment.patch | 64 ------------------- .../2.18.50.0.7/100-arm-uclibcgnueabi.patch | 30 --------- .../2.18.50.0.7/110-ld-makefile-path.patch | 30 --------- .../2.18.50.0.7/120-check-ldrunpath-length.patch | 26 -------- .../2.18.50.0.7/130-i386-no-divide-comment.patch | 64 ------------------- .../2.18.50.0.8/100-arm-uclibcgnueabi.patch | 24 -------- .../2.18.50.0.8/110-ld-makefile-path.patch | 24 -------- .../2.18.50.0.8/120-check-ldrunpath-length.patch | 21 ------- .../2.18.50.0.8/130-i386-no-divide-comment.patch | 64 ------------------- .../2.18.50.0.9/100-arm-uclibcgnueabi.patch | 24 -------- .../2.18.50.0.9/110-ld-makefile-path.patch | 24 -------- .../2.18.50.0.9/120-check-ldrunpath-length.patch | 21 ------- .../2.18.50.0.9/130-i386-no-divide-comment.patch | 64 ------------------- 21 files changed, 808 deletions(-) delete mode 100644 patches/binutils/2.18.50.0.4/100-arm-uclibcgnueabi.patch delete mode 100644 patches/binutils/2.18.50.0.4/110-ld-makefile-path.patch delete mode 100644 patches/binutils/2.18.50.0.4/120-check-ldrunpath-length.patch delete mode 100644 patches/binutils/2.18.50.0.4/130-i386-no-divide-comment.patch delete mode 100644 patches/binutils/2.18.50.0.6/100-arm-uclibcgnueabi.patch delete mode 100644 patches/binutils/2.18.50.0.6/110-ld-makefile-path.patch delete mode 100644 patches/binutils/2.18.50.0.6/120-check-ldrunpath-length.patch delete mode 100644 patches/binutils/2.18.50.0.6/130-i386-no-divide-comment.patch delete mode 100644 patches/binutils/2.18.50.0.7/100-arm-uclibcgnueabi.patch delete mode 100644 patches/binutils/2.18.50.0.7/110-ld-makefile-path.patch delete mode 100644 patches/binutils/2.18.50.0.7/120-check-ldrunpath-length.patch delete mode 100644 patches/binutils/2.18.50.0.7/130-i386-no-divide-comment.patch delete mode 100644 patches/binutils/2.18.50.0.8/100-arm-uclibcgnueabi.patch delete mode 100644 patches/binutils/2.18.50.0.8/110-ld-makefile-path.patch delete mode 100644 patches/binutils/2.18.50.0.8/120-check-ldrunpath-length.patch delete mode 100644 patches/binutils/2.18.50.0.8/130-i386-no-divide-comment.patch delete mode 100644 patches/binutils/2.18.50.0.9/100-arm-uclibcgnueabi.patch delete mode 100644 patches/binutils/2.18.50.0.9/110-ld-makefile-path.patch delete mode 100644 patches/binutils/2.18.50.0.9/120-check-ldrunpath-length.patch delete mode 100644 patches/binutils/2.18.50.0.9/130-i386-no-divide-comment.patch (limited to 'config') diff --git a/config/binutils/binutils.in b/config/binutils/binutils.in index 0900085c..77117a25 100644 --- a/config/binutils/binutils.in +++ b/config/binutils/binutils.in @@ -11,21 +11,6 @@ choice # Don't remove next line # CT_INSERT_VERSION_BELOW -config BINUTILS_V_2_19_51_0_2 - bool - prompt "2.19.51.0.2 (EXPERIMENTAL)" - depends on EXPERIMENTAL - -config BINUTILS_V_2_19_51_0_1 - bool - prompt "2.19.51.0.1 (EXPERIMENTAL)" - depends on EXPERIMENTAL - -config BINUTILS_V_2_19_50_0_1 - bool - prompt "2.19.50.0.1 (EXPERIMENTAL)" - depends on EXPERIMENTAL - config BINUTILS_V_2_19_1 bool prompt "2.19.1" @@ -34,51 +19,6 @@ config BINUTILS_V_2_19 bool prompt "2.19" -config BINUTILS_V_2_18_93 - bool - prompt "2.18.93 (EXPERIMENTAL)" - depends on EXPERIMENTAL - -config BINUTILS_V_2_18_92 - bool - prompt "2.18.92 (EXPERIMENTAL)" - depends on EXPERIMENTAL - -config BINUTILS_V_2_18_91 - bool - prompt "2.18.91 (EXPERIMENTAL)" - depends on EXPERIMENTAL - -config BINUTILS_V_2_18_90 - bool - prompt "2.18.90 (EXPERIMENTAL)" - depends on EXPERIMENTAL - -config BINUTILS_V_2_18_50_0_9 - bool - prompt "2.18.50.0.9 (EXPERIMENTAL)" - depends on EXPERIMENTAL - -config BINUTILS_V_2_18_50_0_8 - bool - prompt "2.18.50.0.8 (EXPERIMENTAL)" - depends on EXPERIMENTAL - -config BINUTILS_V_2_18_50_0_7 - bool - prompt "2.18.50.0.7 (EXPERIMENTAL)" - depends on EXPERIMENTAL - -config BINUTILS_V_2_18_50_0_6 - bool - prompt "2.18.50.0.6 (EXPERIMENTAL)" - depends on EXPERIMENTAL - -config BINUTILS_V_2_18_50_0_4 - bool - prompt "2.18.50.0.4 (EXPERIMENTAL)" - depends on EXPERIMENTAL - config BINUTILS_V_2_18 bool prompt "2.18" @@ -97,20 +37,8 @@ config BINUTILS_VERSION string # Don't remove next line # CT_INSERT_VERSION_STRING_BELOW - default "2.19.51.0.2" if BINUTILS_V_2_19_51_0_2 - default "2.19.51.0.1" if BINUTILS_V_2_19_51_0_1 - default "2.19.50.0.1" if BINUTILS_V_2_19_50_0_1 default "2.19.1" if BINUTILS_V_2_19_1 default "2.19" if BINUTILS_V_2_19 - default "2.18.93" if BINUTILS_V_2_18_93 - default "2.18.92" if BINUTILS_V_2_18_92 - default "2.18.91" if BINUTILS_V_2_18_91 - default "2.18.90" if BINUTILS_V_2_18_90 - default "2.18.50.0.9" if BINUTILS_V_2_18_50_0_9 - default "2.18.50.0.8" if BINUTILS_V_2_18_50_0_8 - default "2.18.50.0.7" if BINUTILS_V_2_18_50_0_7 - default "2.18.50.0.6" if BINUTILS_V_2_18_50_0_6 - default "2.18.50.0.4" if BINUTILS_V_2_18_50_0_4 default "2.18" if BINUTILS_V_2_18 default "2.17" if BINUTILS_V_2_17 default "2.16.1" if BINUTILS_V_2_16_1 diff --git a/patches/binutils/2.18.50.0.4/100-arm-uclibcgnueabi.patch b/patches/binutils/2.18.50.0.4/100-arm-uclibcgnueabi.patch deleted file mode 100644 index bf372113..00000000 --- a/patches/binutils/2.18.50.0.4/100-arm-uclibcgnueabi.patch +++ /dev/null @@ -1,35 +0,0 @@ -Original patch from: ../crosstool-NG/ct-ng.trunk/patches/binutils/2.18.50.0.4/100-arm-uclibcgnueabi.patch - --= BEGIN original header =- -Patch from buildroot, updated to binutils-2.18.50.0.6. - - binutils-2.18.50.0.6/configure | 2 1 1 0 +- - binutils-2.18.50.0.6/configure.ac | 2 1 1 0 +- - 2 files changed, 2 insertions(+), 2 deletions(-) - --= END original header =- - -diff -durN binutils-2.18.50.0.4.orig/configure binutils-2.18.50.0.4/configure ---- binutils-2.18.50.0.4.orig/configure 2008-02-08 17:44:09.000000000 +0100 -+++ binutils-2.18.50.0.4/configure 2009-03-07 12:17:29.000000000 +0100 -@@ -2249,7 +2249,7 @@ - noconfigdirs="$noconfigdirs target-libffi target-qthreads" - libgloss_dir=arm - ;; -- arm*-*-linux-gnueabi) -+ arm*-*-linux-gnueabi | arm*-*-linux-uclibcgnueabi) - noconfigdirs="$noconfigdirs target-qthreads" - noconfigdirs="$noconfigdirs target-libobjc" - case ${with_newlib} in -diff -durN binutils-2.18.50.0.4.orig/configure.ac binutils-2.18.50.0.4/configure.ac ---- binutils-2.18.50.0.4.orig/configure.ac 2008-02-08 17:44:09.000000000 +0100 -+++ binutils-2.18.50.0.4/configure.ac 2009-03-07 12:17:30.000000000 +0100 -@@ -526,7 +526,7 @@ - noconfigdirs="$noconfigdirs target-libffi target-qthreads" - libgloss_dir=arm - ;; -- arm*-*-linux-gnueabi) -+ arm*-*-linux-gnueabi | arm*-*-linux-uclibcgnueabi) - noconfigdirs="$noconfigdirs target-qthreads" - noconfigdirs="$noconfigdirs target-libobjc" - case ${with_newlib} in diff --git a/patches/binutils/2.18.50.0.4/110-ld-makefile-path.patch b/patches/binutils/2.18.50.0.4/110-ld-makefile-path.patch deleted file mode 100644 index 99b02f76..00000000 --- a/patches/binutils/2.18.50.0.4/110-ld-makefile-path.patch +++ /dev/null @@ -1,35 +0,0 @@ -Original patch from: ../crosstool-NG/ct-ng.trunk/patches/binutils/2.18.50.0.4/110-ld-makefile-path.patch - --= BEGIN original header =- -Fix ld scripts path, copied from buildroot. - - binutils-2.18.50.0.6/ld/Makefile.am | 2 1 1 0 +- - binutils-2.18.50.0.6/ld/Makefile.in | 2 1 1 0 +- - 2 files changed, 2 insertions(+), 2 deletions(-) - --= END original header =- - -diff -durN binutils-2.18.50.0.4.orig/ld/Makefile.am binutils-2.18.50.0.4/ld/Makefile.am ---- binutils-2.18.50.0.4.orig/ld/Makefile.am 2007-11-03 21:40:37.000000000 +0100 -+++ binutils-2.18.50.0.4/ld/Makefile.am 2009-03-07 12:17:30.000000000 +0100 -@@ -18,7 +18,7 @@ - # We put the scripts in the directory $(scriptdir)/ldscripts. - # We can't put the scripts in $(datadir) because the SEARCH_DIR - # directives need to be different for native and cross linkers. --scriptdir = $(tooldir)/lib -+scriptdir = $(libdir) - - EMUL = @EMUL@ - EMULATION_OFILES = @EMULATION_OFILES@ -diff -durN binutils-2.18.50.0.4.orig/ld/Makefile.in binutils-2.18.50.0.4/ld/Makefile.in ---- binutils-2.18.50.0.4.orig/ld/Makefile.in 2007-11-03 21:40:37.000000000 +0100 -+++ binutils-2.18.50.0.4/ld/Makefile.in 2009-03-07 12:17:30.000000000 +0100 -@@ -287,7 +287,7 @@ - # We put the scripts in the directory $(scriptdir)/ldscripts. - # We can't put the scripts in $(datadir) because the SEARCH_DIR - # directives need to be different for native and cross linkers. --scriptdir = $(tooldir)/lib -+scriptdir = $(libdir) - BASEDIR = $(srcdir)/.. - BFDDIR = $(BASEDIR)/bfd - INCDIR = $(BASEDIR)/include diff --git a/patches/binutils/2.18.50.0.4/120-check-ldrunpath-length.patch b/patches/binutils/2.18.50.0.4/120-check-ldrunpath-length.patch deleted file mode 100644 index edde04a1..00000000 --- a/patches/binutils/2.18.50.0.4/120-check-ldrunpath-length.patch +++ /dev/null @@ -1,31 +0,0 @@ -Original patch from: ../crosstool-NG/ct-ng.trunk/patches/binutils/2.18.50.0.4/120-check-ldrunpath-length.patch - --= BEGIN original header =- -Check LD_RUN_PATH length, copied from buildroot. - - binutils-2.18.50.0.6/ld/emultempl/elf32.em | 4 4 0 0 ++++ - 1 file changed, 4 insertions(+) - --= END original header =- - -diff -durN binutils-2.18.50.0.4.orig/ld/emultempl/elf32.em binutils-2.18.50.0.4/ld/emultempl/elf32.em ---- binutils-2.18.50.0.4.orig/ld/emultempl/elf32.em 2008-02-08 17:44:55.000000000 +0100 -+++ binutils-2.18.50.0.4/ld/emultempl/elf32.em 2009-03-07 12:17:31.000000000 +0100 -@@ -1220,6 +1220,8 @@ - && command_line.rpath == NULL) - { - lib_path = (const char *) getenv ("LD_RUN_PATH"); -+ if ((lib_path) && (strlen (lib_path) == 0)) -+ lib_path = NULL; - if (gld${EMULATION_NAME}_search_needed (lib_path, &n, - force)) - break; -@@ -1404,6 +1406,8 @@ - rpath = command_line.rpath; - if (rpath == NULL) - rpath = (const char *) getenv ("LD_RUN_PATH"); -+ if ((rpath) && (strlen (rpath) == 0)) -+ rpath = NULL; - if (! (bfd_elf_size_dynamic_sections - (output_bfd, command_line.soname, rpath, - command_line.filter_shlib, diff --git a/patches/binutils/2.18.50.0.4/130-i386-no-divide-comment.patch b/patches/binutils/2.18.50.0.4/130-i386-no-divide-comment.patch deleted file mode 100644 index cb341924..00000000 --- a/patches/binutils/2.18.50.0.4/130-i386-no-divide-comment.patch +++ /dev/null @@ -1,69 +0,0 @@ -Original patch from: ../crosstool-NG/ct-ng.trunk/patches/binutils/2.18.50.0.4/130-i386-no-divide-comment.patch - --= BEGIN original header =- --= END original header =- - -diff -durN binutils-2.18.50.0.4.orig/gas/config/tc-i386.c binutils-2.18.50.0.4/gas/config/tc-i386.c ---- binutils-2.18.50.0.4.orig/gas/config/tc-i386.c 2008-02-08 17:44:10.000000000 +0100 -+++ binutils-2.18.50.0.4/gas/config/tc-i386.c 2009-03-07 12:17:31.000000000 +0100 -@@ -300,24 +300,10 @@ - #endif - ; - --#if (defined (TE_I386AIX) \ -- || ((defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)) \ -- && !defined (TE_GNU) \ -- && !defined (TE_LINUX) \ -- && !defined (TE_NETWARE) \ -- && !defined (TE_FreeBSD) \ -- && !defined (TE_NetBSD))) - /* This array holds the chars that always start a comment. If the -- pre-processor is disabled, these aren't very useful. The option -- --divide will remove '/' from this list. */ --const char *i386_comment_chars = "#/"; --#define SVR4_COMMENT_CHARS 1 --#define PREFIX_SEPARATOR '\\' -- --#else -+ pre-processor is disabled, these aren't very useful. */ - const char *i386_comment_chars = "#"; - #define PREFIX_SEPARATOR '/' --#endif - - /* This array holds the chars that only start a comment at the beginning of - a line. If the line seems to have the form '# 123 filename' -@@ -7243,20 +7229,6 @@ - break; - - case OPTION_DIVIDE: --#ifdef SVR4_COMMENT_CHARS -- { -- char *n, *t; -- const char *s; -- -- n = (char *) xmalloc (strlen (i386_comment_chars) + 1); -- t = n; -- for (s = i386_comment_chars; *s != '\0'; s++) -- if (*s != '/') -- *t++ = *s; -- *t = '\0'; -- i386_comment_chars = n; -- } --#endif - break; - - case OPTION_MARCH: -@@ -7392,13 +7364,8 @@ - fprintf (stream, _("\ - --32/--64 generate 32bit/64bit code\n")); - #endif --#ifdef SVR4_COMMENT_CHARS -- fprintf (stream, _("\ -- --divide do not treat `/' as a comment character\n")); --#else - fprintf (stream, _("\ - --divide ignored\n")); --#endif - fprintf (stream, _("\ - -march=CPU[,+EXTENSION...]\n\ - generate code for CPU and EXTENSION, CPU is one of:\n\ diff --git a/patches/binutils/2.18.50.0.6/100-arm-uclibcgnueabi.patch b/patches/binutils/2.18.50.0.6/100-arm-uclibcgnueabi.patch deleted file mode 100644 index c3f9e778..00000000 --- a/patches/binutils/2.18.50.0.6/100-arm-uclibcgnueabi.patch +++ /dev/null @@ -1,30 +0,0 @@ -Patch from buildroot, updated to binutils-2.18.50.0.6. - - binutils-2.18.50.0.6/configure | 2 1 1 0 +- - binutils-2.18.50.0.6/configure.ac | 2 1 1 0 +- - 2 files changed, 2 insertions(+), 2 deletions(-) - -diff -durN binutils-2.18.50.0.6.orig/configure binutils-2.18.50.0.6/configure ---- binutils-2.18.50.0.6.orig/configure 2008-04-03 18:54:04.000000000 +0200 -+++ binutils-2.18.50.0.6/configure 2008-05-02 23:18:42.000000000 +0200 -@@ -2298,7 +2298,7 @@ - noconfigdirs="$noconfigdirs target-libffi target-qthreads" - libgloss_dir=arm - ;; -- arm*-*-linux-gnueabi) -+ arm*-*-linux-gnueabi | arm*-*-linux-uclibcgnueabi) - noconfigdirs="$noconfigdirs target-qthreads" - noconfigdirs="$noconfigdirs target-libobjc" - case ${with_newlib} in -diff -durN binutils-2.18.50.0.6.orig/configure.ac binutils-2.18.50.0.6/configure.ac ---- binutils-2.18.50.0.6.orig/configure.ac 2008-04-03 18:54:04.000000000 +0200 -+++ binutils-2.18.50.0.6/configure.ac 2008-05-02 23:18:01.000000000 +0200 -@@ -560,7 +560,7 @@ - noconfigdirs="$noconfigdirs target-libffi target-qthreads" - libgloss_dir=arm - ;; -- arm*-*-linux-gnueabi) -+ arm*-*-linux-gnueabi | arm*-*-linux-uclibcgnueabi) - noconfigdirs="$noconfigdirs target-qthreads" - noconfigdirs="$noconfigdirs target-libobjc" - case ${with_newlib} in diff --git a/patches/binutils/2.18.50.0.6/110-ld-makefile-path.patch b/patches/binutils/2.18.50.0.6/110-ld-makefile-path.patch deleted file mode 100644 index 9eea2a1b..00000000 --- a/patches/binutils/2.18.50.0.6/110-ld-makefile-path.patch +++ /dev/null @@ -1,30 +0,0 @@ -Fix ld scripts path, copied from buildroot. - - binutils-2.18.50.0.6/ld/Makefile.am | 2 1 1 0 +- - binutils-2.18.50.0.6/ld/Makefile.in | 2 1 1 0 +- - 2 files changed, 2 insertions(+), 2 deletions(-) - -diff -durN binutils-2.18.50.0.6.orig/ld/Makefile.am binutils-2.18.50.0.6/ld/Makefile.am ---- binutils-2.18.50.0.6.orig/ld/Makefile.am 2008-04-03 18:54:05.000000000 +0200 -+++ binutils-2.18.50.0.6/ld/Makefile.am 2008-05-02 23:25:14.000000000 +0200 -@@ -18,7 +18,7 @@ - # We put the scripts in the directory $(scriptdir)/ldscripts. - # We can't put the scripts in $(datadir) because the SEARCH_DIR - # directives need to be different for native and cross linkers. --scriptdir = $(tooldir)/lib -+scriptdir = $(libdir) - - EMUL = @EMUL@ - EMULATION_OFILES = @EMULATION_OFILES@ -diff -durN binutils-2.18.50.0.6.orig/ld/Makefile.in binutils-2.18.50.0.6/ld/Makefile.in ---- binutils-2.18.50.0.6.orig/ld/Makefile.in 2008-04-03 18:54:05.000000000 +0200 -+++ binutils-2.18.50.0.6/ld/Makefile.in 2008-05-02 23:25:14.000000000 +0200 -@@ -288,7 +288,7 @@ - # We put the scripts in the directory $(scriptdir)/ldscripts. - # We can't put the scripts in $(datadir) because the SEARCH_DIR - # directives need to be different for native and cross linkers. --scriptdir = $(tooldir)/lib -+scriptdir = $(libdir) - BASEDIR = $(srcdir)/.. - BFDDIR = $(BASEDIR)/bfd - INCDIR = $(BASEDIR)/include diff --git a/patches/binutils/2.18.50.0.6/120-check-ldrunpath-length.patch b/patches/binutils/2.18.50.0.6/120-check-ldrunpath-length.patch deleted file mode 100644 index 7b3e7e15..00000000 --- a/patches/binutils/2.18.50.0.6/120-check-ldrunpath-length.patch +++ /dev/null @@ -1,26 +0,0 @@ -Check LD_RUN_PATH length, copied from buildroot. - - binutils-2.18.50.0.6/ld/emultempl/elf32.em | 4 4 0 0 ++++ - 1 file changed, 4 insertions(+) - -diff -durN binutils-2.18.50.0.6.orig/ld/emultempl/elf32.em binutils-2.18.50.0.6/ld/emultempl/elf32.em ---- binutils-2.18.50.0.6.orig/ld/emultempl/elf32.em 2008-04-03 18:54:25.000000000 +0200 -+++ binutils-2.18.50.0.6/ld/emultempl/elf32.em 2008-05-02 23:30:08.000000000 +0200 -@@ -1220,6 +1220,8 @@ - && command_line.rpath == NULL) - { - lib_path = (const char *) getenv ("LD_RUN_PATH"); -+ if ((lib_path) && (strlen (lib_path) == 0)) -+ lib_path = NULL; - if (gld${EMULATION_NAME}_search_needed (lib_path, &n, - force)) - break; -@@ -1405,6 +1407,8 @@ - rpath = command_line.rpath; - if (rpath == NULL) - rpath = (const char *) getenv ("LD_RUN_PATH"); -+ if ((rpath) && (strlen (rpath) == 0)) -+ rpath = NULL; - if (! (bfd_elf_size_dynamic_sections - (link_info.output_bfd, command_line.soname, rpath, - command_line.filter_shlib, diff --git a/patches/binutils/2.18.50.0.6/130-i386-no-divide-comment.patch b/patches/binutils/2.18.50.0.6/130-i386-no-divide-comment.patch deleted file mode 100644 index e4358052..00000000 --- a/patches/binutils/2.18.50.0.6/130-i386-no-divide-comment.patch +++ /dev/null @@ -1,64 +0,0 @@ -diff -durN binutils-2.18.50.0.6.orig/gas/config/tc-i386.c binutils-2.18.50.0.6/gas/config/tc-i386.c ---- binutils-2.18.50.0.6.orig/gas/config/tc-i386.c 2008-04-03 18:54:04.000000000 +0200 -+++ binutils-2.18.50.0.6/gas/config/tc-i386.c 2008-09-22 09:09:23.000000000 +0200 -@@ -312,24 +312,10 @@ - #endif - ; - --#if (defined (TE_I386AIX) \ -- || ((defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)) \ -- && !defined (TE_GNU) \ -- && !defined (TE_LINUX) \ -- && !defined (TE_NETWARE) \ -- && !defined (TE_FreeBSD) \ -- && !defined (TE_NetBSD))) - /* This array holds the chars that always start a comment. If the -- pre-processor is disabled, these aren't very useful. The option -- --divide will remove '/' from this list. */ --const char *i386_comment_chars = "#/"; --#define SVR4_COMMENT_CHARS 1 --#define PREFIX_SEPARATOR '\\' -- --#else -+ pre-processor is disabled, these aren't very useful. */ - const char *i386_comment_chars = "#"; - #define PREFIX_SEPARATOR '/' --#endif - - /* This array holds the chars that only start a comment at the beginning of - a line. If the line seems to have the form '# 123 filename' -@@ -7876,20 +7862,6 @@ - break; - - case OPTION_DIVIDE: --#ifdef SVR4_COMMENT_CHARS -- { -- char *n, *t; -- const char *s; -- -- n = (char *) xmalloc (strlen (i386_comment_chars) + 1); -- t = n; -- for (s = i386_comment_chars; *s != '\0'; s++) -- if (*s != '/') -- *t++ = *s; -- *t = '\0'; -- i386_comment_chars = n; -- } --#endif - break; - - case OPTION_MARCH: -@@ -8029,13 +8001,8 @@ - fprintf (stream, _("\ - --32/--64 generate 32bit/64bit code\n")); - #endif --#ifdef SVR4_COMMENT_CHARS -- fprintf (stream, _("\ -- --divide do not treat `/' as a comment character\n")); --#else - fprintf (stream, _("\ - --divide ignored\n")); --#endif - fprintf (stream, _("\ - -march=CPU[,+EXTENSION...]\n\ - generate code for CPU and EXTENSION, CPU is one of:\n\ diff --git a/patches/binutils/2.18.50.0.7/100-arm-uclibcgnueabi.patch b/patches/binutils/2.18.50.0.7/100-arm-uclibcgnueabi.patch deleted file mode 100644 index c3f9e778..00000000 --- a/patches/binutils/2.18.50.0.7/100-arm-uclibcgnueabi.patch +++ /dev/null @@ -1,30 +0,0 @@ -Patch from buildroot, updated to binutils-2.18.50.0.6. - - binutils-2.18.50.0.6/configure | 2 1 1 0 +- - binutils-2.18.50.0.6/configure.ac | 2 1 1 0 +- - 2 files changed, 2 insertions(+), 2 deletions(-) - -diff -durN binutils-2.18.50.0.6.orig/configure binutils-2.18.50.0.6/configure ---- binutils-2.18.50.0.6.orig/configure 2008-04-03 18:54:04.000000000 +0200 -+++ binutils-2.18.50.0.6/configure 2008-05-02 23:18:42.000000000 +0200 -@@ -2298,7 +2298,7 @@ - noconfigdirs="$noconfigdirs target-libffi target-qthreads" - libgloss_dir=arm - ;; -- arm*-*-linux-gnueabi) -+ arm*-*-linux-gnueabi | arm*-*-linux-uclibcgnueabi) - noconfigdirs="$noconfigdirs target-qthreads" - noconfigdirs="$noconfigdirs target-libobjc" - case ${with_newlib} in -diff -durN binutils-2.18.50.0.6.orig/configure.ac binutils-2.18.50.0.6/configure.ac ---- binutils-2.18.50.0.6.orig/configure.ac 2008-04-03 18:54:04.000000000 +0200 -+++ binutils-2.18.50.0.6/configure.ac 2008-05-02 23:18:01.000000000 +0200 -@@ -560,7 +560,7 @@ - noconfigdirs="$noconfigdirs target-libffi target-qthreads" - libgloss_dir=arm - ;; -- arm*-*-linux-gnueabi) -+ arm*-*-linux-gnueabi | arm*-*-linux-uclibcgnueabi) - noconfigdirs="$noconfigdirs target-qthreads" - noconfigdirs="$noconfigdirs target-libobjc" - case ${with_newlib} in diff --git a/patches/binutils/2.18.50.0.7/110-ld-makefile-path.patch b/patches/binutils/2.18.50.0.7/110-ld-makefile-path.patch deleted file mode 100644 index 9eea2a1b..00000000 --- a/patches/binutils/2.18.50.0.7/110-ld-makefile-path.patch +++ /dev/null @@ -1,30 +0,0 @@ -Fix ld scripts path, copied from buildroot. - - binutils-2.18.50.0.6/ld/Makefile.am | 2 1 1 0 +- - binutils-2.18.50.0.6/ld/Makefile.in | 2 1 1 0 +- - 2 files changed, 2 insertions(+), 2 deletions(-) - -diff -durN binutils-2.18.50.0.6.orig/ld/Makefile.am binutils-2.18.50.0.6/ld/Makefile.am ---- binutils-2.18.50.0.6.orig/ld/Makefile.am 2008-04-03 18:54:05.000000000 +0200 -+++ binutils-2.18.50.0.6/ld/Makefile.am 2008-05-02 23:25:14.000000000 +0200 -@@ -18,7 +18,7 @@ - # We put the scripts in the directory $(scriptdir)/ldscripts. - # We can't put the scripts in $(datadir) because the SEARCH_DIR - # directives need to be different for native and cross linkers. --scriptdir = $(tooldir)/lib -+scriptdir = $(libdir) - - EMUL = @EMUL@ - EMULATION_OFILES = @EMULATION_OFILES@ -diff -durN binutils-2.18.50.0.6.orig/ld/Makefile.in binutils-2.18.50.0.6/ld/Makefile.in ---- binutils-2.18.50.0.6.orig/ld/Makefile.in 2008-04-03 18:54:05.000000000 +0200 -+++ binutils-2.18.50.0.6/ld/Makefile.in 2008-05-02 23:25:14.000000000 +0200 -@@ -288,7 +288,7 @@ - # We put the scripts in the directory $(scriptdir)/ldscripts. - # We can't put the scripts in $(datadir) because the SEARCH_DIR - # directives need to be different for native and cross linkers. --scriptdir = $(tooldir)/lib -+scriptdir = $(libdir) - BASEDIR = $(srcdir)/.. - BFDDIR = $(BASEDIR)/bfd - INCDIR = $(BASEDIR)/include diff --git a/patches/binutils/2.18.50.0.7/120-check-ldrunpath-length.patch b/patches/binutils/2.18.50.0.7/120-check-ldrunpath-length.patch deleted file mode 100644 index 7b3e7e15..00000000 --- a/patches/binutils/2.18.50.0.7/120-check-ldrunpath-length.patch +++ /dev/null @@ -1,26 +0,0 @@ -Check LD_RUN_PATH length, copied from buildroot. - - binutils-2.18.50.0.6/ld/emultempl/elf32.em | 4 4 0 0 ++++ - 1 file changed, 4 insertions(+) - -diff -durN binutils-2.18.50.0.6.orig/ld/emultempl/elf32.em binutils-2.18.50.0.6/ld/emultempl/elf32.em ---- binutils-2.18.50.0.6.orig/ld/emultempl/elf32.em 2008-04-03 18:54:25.000000000 +0200 -+++ binutils-2.18.50.0.6/ld/emultempl/elf32.em 2008-05-02 23:30:08.000000000 +0200 -@@ -1220,6 +1220,8 @@ - && command_line.rpath == NULL) - { - lib_path = (const char *) getenv ("LD_RUN_PATH"); -+ if ((lib_path) && (strlen (lib_path) == 0)) -+ lib_path = NULL; - if (gld${EMULATION_NAME}_search_needed (lib_path, &n, - force)) - break; -@@ -1405,6 +1407,8 @@ - rpath = command_line.rpath; - if (rpath == NULL) - rpath = (const char *) getenv ("LD_RUN_PATH"); -+ if ((rpath) && (strlen (rpath) == 0)) -+ rpath = NULL; - if (! (bfd_elf_size_dynamic_sections - (link_info.output_bfd, command_line.soname, rpath, - command_line.filter_shlib, diff --git a/patches/binutils/2.18.50.0.7/130-i386-no-divide-comment.patch b/patches/binutils/2.18.50.0.7/130-i386-no-divide-comment.patch deleted file mode 100644 index af622657..00000000 --- a/patches/binutils/2.18.50.0.7/130-i386-no-divide-comment.patch +++ /dev/null @@ -1,64 +0,0 @@ -diff -durN binutils-2.18.50.0.7.orig/gas/config/tc-i386.c binutils-2.18.50.0.7/gas/config/tc-i386.c ---- binutils-2.18.50.0.7.orig/gas/config/tc-i386.c 2008-05-04 16:28:10.000000000 +0200 -+++ binutils-2.18.50.0.7/gas/config/tc-i386.c 2008-09-22 09:11:19.000000000 +0200 -@@ -312,24 +312,10 @@ - #endif - ; - --#if (defined (TE_I386AIX) \ -- || ((defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)) \ -- && !defined (TE_GNU) \ -- && !defined (TE_LINUX) \ -- && !defined (TE_NETWARE) \ -- && !defined (TE_FreeBSD) \ -- && !defined (TE_NetBSD))) - /* This array holds the chars that always start a comment. If the -- pre-processor is disabled, these aren't very useful. The option -- --divide will remove '/' from this list. */ --const char *i386_comment_chars = "#/"; --#define SVR4_COMMENT_CHARS 1 --#define PREFIX_SEPARATOR '\\' -- --#else -+ pre-processor is disabled, these aren't very useful. */ - const char *i386_comment_chars = "#"; - #define PREFIX_SEPARATOR '/' --#endif - - /* This array holds the chars that only start a comment at the beginning of - a line. If the line seems to have the form '# 123 filename' -@@ -7920,20 +7906,6 @@ - break; - - case OPTION_DIVIDE: --#ifdef SVR4_COMMENT_CHARS -- { -- char *n, *t; -- const char *s; -- -- n = (char *) xmalloc (strlen (i386_comment_chars) + 1); -- t = n; -- for (s = i386_comment_chars; *s != '\0'; s++) -- if (*s != '/') -- *t++ = *s; -- *t = '\0'; -- i386_comment_chars = n; -- } --#endif - break; - - case OPTION_MARCH: -@@ -8084,13 +8056,8 @@ - fprintf (stream, _("\ - --32/--64 generate 32bit/64bit code\n")); - #endif --#ifdef SVR4_COMMENT_CHARS -- fprintf (stream, _("\ -- --divide do not treat `/' as a comment character\n")); --#else - fprintf (stream, _("\ - --divide ignored\n")); --#endif - fprintf (stream, _("\ - -march=CPU[,+EXTENSION...]\n\ - generate code for CPU and EXTENSION, CPU is one of:\n\ diff --git a/patches/binutils/2.18.50.0.8/100-arm-uclibcgnueabi.patch b/patches/binutils/2.18.50.0.8/100-arm-uclibcgnueabi.patch deleted file mode 100644 index b4504d49..00000000 --- a/patches/binutils/2.18.50.0.8/100-arm-uclibcgnueabi.patch +++ /dev/null @@ -1,24 +0,0 @@ -diff -durN binutils-2.18.50.0.8.orig/configure binutils-2.18.50.0.8/configure ---- binutils-2.18.50.0.8.orig/configure 2008-07-10 17:32:56.000000000 +0200 -+++ binutils-2.18.50.0.8/configure 2008-07-13 23:08:13.000000000 +0200 -@@ -2313,7 +2313,7 @@ - noconfigdirs="$noconfigdirs target-libffi target-qthreads" - libgloss_dir=arm - ;; -- arm*-*-linux-gnueabi) -+ arm*-*-linux-gnueabi | arm*-*-linux-uclibcgnueabi) - noconfigdirs="$noconfigdirs target-qthreads" - case ${with_newlib} in - no) noconfigdirs="$noconfigdirs target-newlib target-libgloss" -diff -durN binutils-2.18.50.0.8.orig/configure.ac binutils-2.18.50.0.8/configure.ac ---- binutils-2.18.50.0.8.orig/configure.ac 2008-07-10 17:32:56.000000000 +0200 -+++ binutils-2.18.50.0.8/configure.ac 2008-07-13 23:08:13.000000000 +0200 -@@ -562,7 +562,7 @@ - noconfigdirs="$noconfigdirs target-libffi target-qthreads" - libgloss_dir=arm - ;; -- arm*-*-linux-gnueabi) -+ arm*-*-linux-gnueabi | arm*-*-linux-uclibcgnueabi) - noconfigdirs="$noconfigdirs target-qthreads" - case ${with_newlib} in - no) noconfigdirs="$noconfigdirs target-newlib target-libgloss" diff --git a/patches/binutils/2.18.50.0.8/110-ld-makefile-path.patch b/patches/binutils/2.18.50.0.8/110-ld-makefile-path.patch deleted file mode 100644 index 41a2249e..00000000 --- a/patches/binutils/2.18.50.0.8/110-ld-makefile-path.patch +++ /dev/null @@ -1,24 +0,0 @@ -diff -durN binutils-2.18.50.0.8.orig/ld/Makefile.am binutils-2.18.50.0.8/ld/Makefile.am ---- binutils-2.18.50.0.8.orig/ld/Makefile.am 2008-04-03 18:54:05.000000000 +0200 -+++ binutils-2.18.50.0.8/ld/Makefile.am 2008-07-13 23:15:40.000000000 +0200 -@@ -18,7 +18,7 @@ - # We put the scripts in the directory $(scriptdir)/ldscripts. - # We can't put the scripts in $(datadir) because the SEARCH_DIR - # directives need to be different for native and cross linkers. --scriptdir = $(tooldir)/lib -+scriptdir = $(libdir) - - EMUL = @EMUL@ - EMULATION_OFILES = @EMULATION_OFILES@ -diff -durN binutils-2.18.50.0.8.orig/ld/Makefile.in binutils-2.18.50.0.8/ld/Makefile.in ---- binutils-2.18.50.0.8.orig/ld/Makefile.in 2008-07-10 17:32:58.000000000 +0200 -+++ binutils-2.18.50.0.8/ld/Makefile.in 2008-07-13 23:15:40.000000000 +0200 -@@ -290,7 +290,7 @@ - # We put the scripts in the directory $(scriptdir)/ldscripts. - # We can't put the scripts in $(datadir) because the SEARCH_DIR - # directives need to be different for native and cross linkers. --scriptdir = $(tooldir)/lib -+scriptdir = $(libdir) - BASEDIR = $(srcdir)/.. - BFDDIR = $(BASEDIR)/bfd - INCDIR = $(BASEDIR)/include diff --git a/patches/binutils/2.18.50.0.8/120-check-ldrunpath-length.patch b/patches/binutils/2.18.50.0.8/120-check-ldrunpath-length.patch deleted file mode 100644 index f2f096df..00000000 --- a/patches/binutils/2.18.50.0.8/120-check-ldrunpath-length.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff -durN binutils-2.18.50.0.8.orig/ld/emultempl/elf32.em binutils-2.18.50.0.8/ld/emultempl/elf32.em ---- binutils-2.18.50.0.8.orig/ld/emultempl/elf32.em 2008-07-10 17:33:23.000000000 +0200 -+++ binutils-2.18.50.0.8/ld/emultempl/elf32.em 2008-07-13 23:19:29.000000000 +0200 -@@ -1220,6 +1220,8 @@ - && command_line.rpath == NULL) - { - lib_path = (const char *) getenv ("LD_RUN_PATH"); -+ if ((lib_path) && (strlen (lib_path) == 0)) -+ lib_path = NULL; - if (gld${EMULATION_NAME}_search_needed (lib_path, &n, - force)) - break; -@@ -1405,6 +1407,8 @@ - rpath = command_line.rpath; - if (rpath == NULL) - rpath = (const char *) getenv ("LD_RUN_PATH"); -+ if ((rpath) && (strlen (rpath) == 0)) -+ rpath = NULL; - if (! (bfd_elf_size_dynamic_sections - (link_info.output_bfd, command_line.soname, rpath, - command_line.filter_shlib, diff --git a/patches/binutils/2.18.50.0.8/130-i386-no-divide-comment.patch b/patches/binutils/2.18.50.0.8/130-i386-no-divide-comment.patch deleted file mode 100644 index 196671da..00000000 --- a/patches/binutils/2.18.50.0.8/130-i386-no-divide-comment.patch +++ /dev/null @@ -1,64 +0,0 @@ -diff -durN binutils-2.18.50.0.8.orig/gas/config/tc-i386.c binutils-2.18.50.0.8/gas/config/tc-i386.c ---- binutils-2.18.50.0.8.orig/gas/config/tc-i386.c 2008-07-10 17:32:58.000000000 +0200 -+++ binutils-2.18.50.0.8/gas/config/tc-i386.c 2008-09-22 09:12:39.000000000 +0200 -@@ -313,24 +313,10 @@ - #endif - ; - --#if (defined (TE_I386AIX) \ -- || ((defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)) \ -- && !defined (TE_GNU) \ -- && !defined (TE_LINUX) \ -- && !defined (TE_NETWARE) \ -- && !defined (TE_FreeBSD) \ -- && !defined (TE_NetBSD))) - /* This array holds the chars that always start a comment. If the -- pre-processor is disabled, these aren't very useful. The option -- --divide will remove '/' from this list. */ --const char *i386_comment_chars = "#/"; --#define SVR4_COMMENT_CHARS 1 --#define PREFIX_SEPARATOR '\\' -- --#else -+ pre-processor is disabled, these aren't very useful. */ - const char *i386_comment_chars = "#"; - #define PREFIX_SEPARATOR '/' --#endif - - /* This array holds the chars that only start a comment at the beginning of - a line. If the line seems to have the form '# 123 filename' -@@ -7952,20 +7938,6 @@ - break; - - case OPTION_DIVIDE: --#ifdef SVR4_COMMENT_CHARS -- { -- char *n, *t; -- const char *s; -- -- n = (char *) xmalloc (strlen (i386_comment_chars) + 1); -- t = n; -- for (s = i386_comment_chars; *s != '\0'; s++) -- if (*s != '/') -- *t++ = *s; -- *t = '\0'; -- i386_comment_chars = n; -- } --#endif - break; - - case OPTION_MARCH: -@@ -8116,13 +8088,8 @@ - fprintf (stream, _("\ - --32/--64 generate 32bit/64bit code\n")); - #endif --#ifdef SVR4_COMMENT_CHARS -- fprintf (stream, _("\ -- --divide do not treat `/' as a comment character\n")); --#else - fprintf (stream, _("\ - --divide ignored\n")); --#endif - fprintf (stream, _("\ - -march=CPU[,+EXTENSION...]\n\ - generate code for CPU and EXTENSION, CPU is one of:\n\ diff --git a/patches/binutils/2.18.50.0.9/100-arm-uclibcgnueabi.patch b/patches/binutils/2.18.50.0.9/100-arm-uclibcgnueabi.patch deleted file mode 100644 index b4504d49..00000000 --- a/patches/binutils/2.18.50.0.9/100-arm-uclibcgnueabi.patch +++ /dev/null @@ -1,24 +0,0 @@ -diff -durN binutils-2.18.50.0.8.orig/configure binutils-2.18.50.0.8/configure ---- binutils-2.18.50.0.8.orig/configure 2008-07-10 17:32:56.000000000 +0200 -+++ binutils-2.18.50.0.8/configure 2008-07-13 23:08:13.000000000 +0200 -@@ -2313,7 +2313,7 @@ - noconfigdirs="$noconfigdirs target-libffi target-qthreads" - libgloss_dir=arm - ;; -- arm*-*-linux-gnueabi) -+ arm*-*-linux-gnueabi | arm*-*-linux-uclibcgnueabi) - noconfigdirs="$noconfigdirs target-qthreads" - case ${with_newlib} in - no) noconfigdirs="$noconfigdirs target-newlib target-libgloss" -diff -durN binutils-2.18.50.0.8.orig/configure.ac binutils-2.18.50.0.8/configure.ac ---- binutils-2.18.50.0.8.orig/configure.ac 2008-07-10 17:32:56.000000000 +0200 -+++ binutils-2.18.50.0.8/configure.ac 2008-07-13 23:08:13.000000000 +0200 -@@ -562,7 +562,7 @@ - noconfigdirs="$noconfigdirs target-libffi target-qthreads" - libgloss_dir=arm - ;; -- arm*-*-linux-gnueabi) -+ arm*-*-linux-gnueabi | arm*-*-linux-uclibcgnueabi) - noconfigdirs="$noconfigdirs target-qthreads" - case ${with_newlib} in - no) noconfigdirs="$noconfigdirs target-newlib target-libgloss" diff --git a/patches/binutils/2.18.50.0.9/110-ld-makefile-path.patch b/patches/binutils/2.18.50.0.9/110-ld-makefile-path.patch deleted file mode 100644 index 41a2249e..00000000 --- a/patches/binutils/2.18.50.0.9/110-ld-makefile-path.patch +++ /dev/null @@ -1,24 +0,0 @@ -diff -durN binutils-2.18.50.0.8.orig/ld/Makefile.am binutils-2.18.50.0.8/ld/Makefile.am ---- binutils-2.18.50.0.8.orig/ld/Makefile.am 2008-04-03 18:54:05.000000000 +0200 -+++ binutils-2.18.50.0.8/ld/Makefile.am 2008-07-13 23:15:40.000000000 +0200 -@@ -18,7 +18,7 @@ - # We put the scripts in the directory $(scriptdir)/ldscripts. - # We can't put the scripts in $(datadir) because the SEARCH_DIR - # directives need to be different for native and cross linkers. --scriptdir = $(tooldir)/lib -+scriptdir = $(libdir) - - EMUL = @EMUL@ - EMULATION_OFILES = @EMULATION_OFILES@ -diff -durN binutils-2.18.50.0.8.orig/ld/Makefile.in binutils-2.18.50.0.8/ld/Makefile.in ---- binutils-2.18.50.0.8.orig/ld/Makefile.in 2008-07-10 17:32:58.000000000 +0200 -+++ binutils-2.18.50.0.8/ld/Makefile.in 2008-07-13 23:15:40.000000000 +0200 -@@ -290,7 +290,7 @@ - # We put the scripts in the directory $(scriptdir)/ldscripts. - # We can't put the scripts in $(datadir) because the SEARCH_DIR - # directives need to be different for native and cross linkers. --scriptdir = $(tooldir)/lib -+scriptdir = $(libdir) - BASEDIR = $(srcdir)/.. - BFDDIR = $(BASEDIR)/bfd - INCDIR = $(BASEDIR)/include diff --git a/patches/binutils/2.18.50.0.9/120-check-ldrunpath-length.patch b/patches/binutils/2.18.50.0.9/120-check-ldrunpath-length.patch deleted file mode 100644 index f2f096df..00000000 --- a/patches/binutils/2.18.50.0.9/120-check-ldrunpath-length.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff -durN binutils-2.18.50.0.8.orig/ld/emultempl/elf32.em binutils-2.18.50.0.8/ld/emultempl/elf32.em ---- binutils-2.18.50.0.8.orig/ld/emultempl/elf32.em 2008-07-10 17:33:23.000000000 +0200 -+++ binutils-2.18.50.0.8/ld/emultempl/elf32.em 2008-07-13 23:19:29.000000000 +0200 -@@ -1220,6 +1220,8 @@ - && command_line.rpath == NULL) - { - lib_path = (const char *) getenv ("LD_RUN_PATH"); -+ if ((lib_path) && (strlen (lib_path) == 0)) -+ lib_path = NULL; - if (gld${EMULATION_NAME}_search_needed (lib_path, &n, - force)) - break; -@@ -1405,6 +1407,8 @@ - rpath = command_line.rpath; - if (rpath == NULL) - rpath = (const char *) getenv ("LD_RUN_PATH"); -+ if ((rpath) && (strlen (rpath) == 0)) -+ rpath = NULL; - if (! (bfd_elf_size_dynamic_sections - (link_info.output_bfd, command_line.soname, rpath, - command_line.filter_shlib, diff --git a/patches/binutils/2.18.50.0.9/130-i386-no-divide-comment.patch b/patches/binutils/2.18.50.0.9/130-i386-no-divide-comment.patch deleted file mode 100644 index 196671da..00000000 --- a/patches/binutils/2.18.50.0.9/130-i386-no-divide-comment.patch +++ /dev/null @@ -1,64 +0,0 @@ -diff -durN binutils-2.18.50.0.8.orig/gas/config/tc-i386.c binutils-2.18.50.0.8/gas/config/tc-i386.c ---- binutils-2.18.50.0.8.orig/gas/config/tc-i386.c 2008-07-10 17:32:58.000000000 +0200 -+++ binutils-2.18.50.0.8/gas/config/tc-i386.c 2008-09-22 09:12:39.000000000 +0200 -@@ -313,24 +313,10 @@ - #endif - ; - --#if (defined (TE_I386AIX) \ -- || ((defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)) \ -- && !defined (TE_GNU) \ -- && !defined (TE_LINUX) \ -- && !defined (TE_NETWARE) \ -- && !defined (TE_FreeBSD) \ -- && !defined (TE_NetBSD))) - /* This array holds the chars that always start a comment. If the -- pre-processor is disabled, these aren't very useful. The option -- --divide will remove '/' from this list. */ --const char *i386_comment_chars = "#/"; --#define SVR4_COMMENT_CHARS 1 --#define PREFIX_SEPARATOR '\\' -- --#else -+ pre-processor is disabled, these aren't very useful. */ - const char *i386_comment_chars = "#"; - #define PREFIX_SEPARATOR '/' --#endif - - /* This array holds the chars that only start a comment at the beginning of - a line. If the line seems to have the form '# 123 filename' -@@ -7952,20 +7938,6 @@ - break; - - case OPTION_DIVIDE: --#ifdef SVR4_COMMENT_CHARS -- { -- char *n, *t; -- const char *s; -- -- n = (char *) xmalloc (strlen (i386_comment_chars) + 1); -- t = n; -- for (s = i386_comment_chars; *s != '\0'; s++) -- if (*s != '/') -- *t++ = *s; -- *t = '\0'; -- i386_comment_chars = n; -- } --#endif - break; - - case OPTION_MARCH: -@@ -8116,13 +8088,8 @@ - fprintf (stream, _("\ - --32/--64 generate 32bit/64bit code\n")); - #endif --#ifdef SVR4_COMMENT_CHARS -- fprintf (stream, _("\ -- --divide do not treat `/' as a comment character\n")); --#else - fprintf (stream, _("\ - --divide ignored\n")); --#endif - fprintf (stream, _("\ - -march=CPU[,+EXTENSION...]\n\ - generate code for CPU and EXTENSION, CPU is one of:\n\ -- cgit v1.2.3 From 14f607d3a993cec5b4926abd21971648bb3542a4 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Wed, 28 Oct 2009 18:59:09 +0100 Subject: debug/gdb: remove old versions --- config/debug/gdb.in | 17 -- patches/gdb/6.6/100-uclibc-conf.patch | 82 ------- .../gdb/6.6/110-fix-compile-flag-mismatch.patch | 69 ------ .../gdb/6.7.1/100-security-errata-20050610.patch | 205 ---------------- patches/gdb/6.7.1/110-hppa-offsets.patch | 272 --------------------- patches/gdb/6.7.1/120-deleted-children.patch | 26 -- patches/gdb/6.7.1/130-dwarf-stack-overflow.patch | 52 ---- patches/gdb/6.7/100-security-errata-20050610.patch | 205 ---------------- patches/gdb/6.7/110-hppa-offsets.patch | 272 --------------------- patches/gdb/6.7/120-dwarf-stack-overflow.patch | 52 ---- 10 files changed, 1252 deletions(-) delete mode 100644 patches/gdb/6.6/100-uclibc-conf.patch delete mode 100644 patches/gdb/6.6/110-fix-compile-flag-mismatch.patch delete mode 100644 patches/gdb/6.7.1/100-security-errata-20050610.patch delete mode 100644 patches/gdb/6.7.1/110-hppa-offsets.patch delete mode 100644 patches/gdb/6.7.1/120-deleted-children.patch delete mode 100644 patches/gdb/6.7.1/130-dwarf-stack-overflow.patch delete mode 100644 patches/gdb/6.7/100-security-errata-20050610.patch delete mode 100644 patches/gdb/6.7/110-hppa-offsets.patch delete mode 100644 patches/gdb/6.7/120-dwarf-stack-overflow.patch (limited to 'config') diff --git a/config/debug/gdb.in b/config/debug/gdb.in index 19414082..4914e908 100644 --- a/config/debug/gdb.in +++ b/config/debug/gdb.in @@ -103,20 +103,6 @@ config GDB_V_6_8 bool prompt "6.8" -config GDB_V_6_7_1 - bool - prompt "6.7.1 (EXPERIMENTAL)" - depends on EXPERIMENTAL - -config GDB_V_6_7 - bool - prompt "6.7 (EXPERIMENTAL)" - depends on EXPERIMENTAL - -config GDB_V_6_6 - bool - prompt "6.6" - config GDB_V_snapshot bool prompt "snapshot (EXPERIMENTAL)" @@ -130,9 +116,6 @@ config GDB_VERSION # Don't remove next line # CT_INSERT_VERSION_STRING_BELOW default "6.8" if GDB_V_6_8 - default "6.7.1" if GDB_V_6_7_1 - default "6.7" if GDB_V_6_7 - default "6.6" if GDB_V_6_6 default "snapshot" if GDB_V_snapshot if GDB_NATIVE diff --git a/patches/gdb/6.6/100-uclibc-conf.patch b/patches/gdb/6.6/100-uclibc-conf.patch deleted file mode 100644 index a790b6f0..00000000 --- a/patches/gdb/6.6/100-uclibc-conf.patch +++ /dev/null @@ -1,82 +0,0 @@ -diff -rNdup gdb-6.6.orig/bfd/configure gdb-6.6/bfd/configure ---- gdb-6.6.orig/bfd/configure 2006-10-25 08:49:20.000000000 +0200 -+++ gdb-6.6/bfd/configure 2007-05-14 10:35:50.000000000 +0200 -@@ -3579,6 +3579,11 @@ linux-gnu*) - lt_cv_deplibs_check_method=pass_all - ;; - -+linux-uclibc*) -+ lt_cv_deplibs_check_method=pass_all -+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so` -+ ;; -+ - netbsd* | knetbsd*-gnu) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' -diff -rNdup gdb-6.6.orig/libtool.m4 gdb-6.6/libtool.m4 ---- gdb-6.6.orig/libtool.m4 2005-12-27 17:37:57.000000000 +0100 -+++ gdb-6.6/libtool.m4 2007-05-14 10:35:50.000000000 +0200 -@@ -751,6 +751,11 @@ netbsd* | knetbsd*-gnu) - fi - ;; - -+linux-uclibc*) -+ lt_cv_deplibs_check_method=pass_all -+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so` -+ ;; -+ - newsos6) - [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'] - lt_cv_file_magic_cmd=/usr/bin/file -diff -rNdup gdb-6.6.orig/ltconfig gdb-6.6/ltconfig ---- gdb-6.6.orig/ltconfig 2006-07-04 22:31:03.000000000 +0200 -+++ gdb-6.6/ltconfig 2007-05-14 10:35:50.000000000 +0200 -@@ -602,7 +602,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)- - - # Transform linux* to *-*-linux-gnu*, to support old configure scripts. - case $host_os in --linux-gnu*) ;; -+linux-gnu*|linux-uclibc*) ;; - linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` - esac - -@@ -1270,6 +1270,24 @@ linux-gnu*) - dynamic_linker='GNU/Linux ld.so' - ;; - -+linux-uclibc*) -+ version_type=linux -+ need_lib_prefix=no -+ need_version=no -+ library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' -+ soname_spec='${libname}${release}.so$major' -+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' -+ shlibpath_var=LD_LIBRARY_PATH -+ shlibpath_overrides_runpath=no -+ # This implies no fast_install, which is unacceptable. -+ # Some rework will be needed to allow for fast_install -+ # before this can be enabled. -+ # Note: copied from linux-gnu, and may not be appropriate. -+ hardcode_into_libs=yes -+ # Assume using the uClibc dynamic linker. -+ dynamic_linker="uClibc ld.so" -+ ;; -+ - netbsd*) - need_lib_prefix=no - need_version=no -diff -rNdup gdb-6.6.orig/opcodes/configure gdb-6.6/opcodes/configure ---- gdb-6.6.orig/opcodes/configure 2006-10-25 08:49:20.000000000 +0200 -+++ gdb-6.6/opcodes/configure 2007-05-14 10:35:50.000000000 +0200 -@@ -3590,6 +3590,11 @@ netbsd* | knetbsd*-gnu) - fi - ;; - -+linux-uclibc*) -+ lt_cv_deplibs_check_method=pass_all -+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so` -+ ;; -+ - newsos6) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' - lt_cv_file_magic_cmd=/usr/bin/file diff --git a/patches/gdb/6.6/110-fix-compile-flag-mismatch.patch b/patches/gdb/6.6/110-fix-compile-flag-mismatch.patch deleted file mode 100644 index 60f0ace6..00000000 --- a/patches/gdb/6.6/110-fix-compile-flag-mismatch.patch +++ /dev/null @@ -1,69 +0,0 @@ -diff -rduNp gdb-6.6-100/Makefile.in gdb-6.6/Makefile.in ---- gdb-6.6-100/Makefile.in 2006-12-18 08:21:19.000000000 +0100 -+++ gdb-6.6/Makefile.in 2007-05-14 10:54:29.000000000 +0200 -@@ -331,7 +331,7 @@ COMPILER_NM_FOR_TARGET=@COMPILER_NM_FOR_ - # CFLAGS will be just -g. We want to ensure that TARGET libraries - # (which we know are built with gcc) are built with optimizations so - # prepend -O2 when setting CFLAGS_FOR_TARGET. --CFLAGS_FOR_TARGET = -O2 $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET) -+CFLAGS_FOR_TARGET = $(strip $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)) - SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@ - CXXFLAGS_FOR_TARGET = $(CXXFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET) - LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET) -diff -rduNp gdb-6.6-100/Makefile.tpl gdb-6.6/Makefile.tpl ---- gdb-6.6-100/Makefile.tpl 2006-11-15 00:26:39.000000000 +0100 -+++ gdb-6.6/Makefile.tpl 2007-05-14 10:54:29.000000000 +0200 -@@ -334,7 +334,7 @@ COMPILER_NM_FOR_TARGET=@COMPILER_NM_FOR_ - # CFLAGS will be just -g. We want to ensure that TARGET libraries - # (which we know are built with gcc) are built with optimizations so - # prepend -O2 when setting CFLAGS_FOR_TARGET. --CFLAGS_FOR_TARGET = -O2 $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET) -+CFLAGS_FOR_TARGET = $(strip $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)) - SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@ - CXXFLAGS_FOR_TARGET = $(CXXFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET) - LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET) -diff -rduNp gdb-6.6-100/gdb/configure gdb-6.6/gdb/configure ---- gdb-6.6-100/gdb/configure 2006-12-17 16:38:59.000000000 +0100 -+++ gdb-6.6/gdb/configure 2007-05-14 10:55:41.000000000 +0200 -@@ -272,7 +272,7 @@ PACKAGE_STRING= - PACKAGE_BUGREPORT= - - ac_unique_file="main.c" --ac_subdirs_all="$ac_subdirs_all doc testsuite" -+ac_subdirs_all="$ac_subdirs_all doc" - # Factoring default headers for most tests. - ac_includes_default="\ - #include -@@ -3055,7 +3055,7 @@ _ACEOF - - - --subdirs="$subdirs doc testsuite" -+subdirs="$subdirs doc" - - - # Provide defaults for some variables set by the per-host and per-target -diff -rduNp gdb-6.6-100/gdb/gdbserver/configure gdb-6.6/gdb/gdbserver/configure ---- gdb-6.6-100/gdb/gdbserver/configure 2006-11-22 01:10:19.000000000 +0100 -+++ gdb-6.6/gdb/gdbserver/configure 2007-05-14 10:54:29.000000000 +0200 -@@ -1239,7 +1239,7 @@ echo "$as_me: error: \`$ac_var' was not - ac_cache_corrupted=: ;; - ,);; - *) -- if test "x$ac_old_val" != "x$ac_new_val"; then -+ if test "`echo $ac_old_val`" != "`echo $ac_new_val`"; then - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 - echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 -diff -rduNp gdb-6.6-100/gdb/testsuite/configure gdb-6.6/gdb/testsuite/configure ---- gdb-6.6-100/gdb/testsuite/configure 2006-06-21 15:57:21.000000000 +0200 -+++ gdb-6.6/gdb/testsuite/configure 2007-05-14 10:54:29.000000000 +0200 -@@ -1248,7 +1248,7 @@ echo "$as_me: error: \`$ac_var' was not - ac_cache_corrupted=: ;; - ,);; - *) -- if test "x$ac_old_val" != "x$ac_new_val"; then -+ if test "`echo $ac_old_val" != "`echo $ac_new_val"; then - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 - echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 diff --git a/patches/gdb/6.7.1/100-security-errata-20050610.patch b/patches/gdb/6.7.1/100-security-errata-20050610.patch deleted file mode 100644 index 30c7f269..00000000 --- a/patches/gdb/6.7.1/100-security-errata-20050610.patch +++ /dev/null @@ -1,205 +0,0 @@ -Original patch from gentoo: gentoo/src/patchsets/gdb/6.7.1/35_all_gdb-6.3-security-errata-20050610.patch --= BEGIN original header =- -2005-06-09 Jeff Johnston - - * gdb.base/gdbinit.exp: New testcase. - * gdb.base/gdbinit.sample: Sample .gdbinit for gdbinit.exp. - -2005-06-08 Daniel Jacobowitz - Jeff Johnston - - * Makefile.in (cli-cmds.o): Update. - * configure.in: Add check for getuid. - * configure: Regenerated. - * config.in: Ditto. - * main.c (captured_main): Pass -1 to source_command when loading - gdbinit files. - * cli/cli-cmds.c: Include "gdb_stat.h" and . - (source_command): Update documentation. Check permissions if - FROM_TTY is -1. - --= END original header =- -diff -durN gdb-6.7.1.orig/gdb/cli/cli-cmds.c gdb-6.7.1/gdb/cli/cli-cmds.c ---- gdb-6.7.1.orig/gdb/cli/cli-cmds.c 2007-08-23 20:08:47.000000000 +0200 -+++ gdb-6.7.1/gdb/cli/cli-cmds.c 2008-06-17 23:27:44.000000000 +0200 -@@ -36,6 +36,7 @@ - #include "objfiles.h" - #include "source.h" - #include "disasm.h" -+#include "gdb_stat.h" - - #include "ui-out.h" - -@@ -459,12 +460,31 @@ - - if (fd == -1) - { -- if (from_tty) -+ if (from_tty > 0) - perror_with_name (file); - else - return; - } - -+#ifdef HAVE_GETUID -+ if (from_tty == -1) -+ { -+ struct stat statbuf; -+ if (fstat (fd, &statbuf) < 0) -+ { -+ perror_with_name (file); -+ close (fd); -+ return; -+ } -+ if (statbuf.st_uid != getuid () || (statbuf.st_mode & S_IWOTH)) -+ { -+ warning (_("not using untrusted file \"%s\""), file); -+ close (fd); -+ return; -+ } -+ } -+#endif -+ - stream = fdopen (fd, FOPEN_RT); - script_from_file (stream, file); - -diff -durN gdb-6.7.1.orig/gdb/main.c gdb-6.7.1/gdb/main.c ---- gdb-6.7.1.orig/gdb/main.c 2007-08-23 20:08:36.000000000 +0200 -+++ gdb-6.7.1/gdb/main.c 2008-06-17 23:27:44.000000000 +0200 -@@ -688,7 +688,7 @@ - - if (!inhibit_gdbinit) - { -- catch_command_errors (source_script, homeinit, 0, RETURN_MASK_ALL); -+ catch_command_errors (source_script, homeinit, -1, RETURN_MASK_ALL); - } - - /* Do stats; no need to do them elsewhere since we'll only -@@ -766,7 +766,7 @@ - || memcmp ((char *) &homebuf, (char *) &cwdbuf, sizeof (struct stat))) - if (!inhibit_gdbinit) - { -- catch_command_errors (source_script, gdbinit, 0, RETURN_MASK_ALL); -+ catch_command_errors (source_script, gdbinit, -1, RETURN_MASK_ALL); - } - - for (i = 0; i < ncmd; i++) -diff -durN gdb-6.7.1.orig/gdb/Makefile.in gdb-6.7.1/gdb/Makefile.in ---- gdb-6.7.1.orig/gdb/Makefile.in 2008-06-17 23:27:44.000000000 +0200 -+++ gdb-6.7.1/gdb/Makefile.in 2008-06-17 23:27:44.000000000 +0200 -@@ -2885,7 +2885,7 @@ - $(expression_h) $(frame_h) $(value_h) $(language_h) $(filenames_h) \ - $(objfiles_h) $(source_h) $(disasm_h) $(ui_out_h) $(top_h) \ - $(cli_decode_h) $(cli_script_h) $(cli_setshow_h) $(cli_cmds_h) \ -- $(tui_h) -+ $(tui_h) $(gdb_stat_h) - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/cli/cli-cmds.c - cli-decode.o: $(srcdir)/cli/cli-decode.c $(defs_h) $(symtab_h) \ - $(gdb_regex_h) $(gdb_string_h) $(completer_h) $(ui_out_h) \ -diff -durN gdb-6.7.1.orig/gdb/testsuite/gdb.base/gdbinit.exp gdb-6.7.1/gdb/testsuite/gdb.base/gdbinit.exp ---- gdb-6.7.1.orig/gdb/testsuite/gdb.base/gdbinit.exp 1970-01-01 01:00:00.000000000 +0100 -+++ gdb-6.7.1/gdb/testsuite/gdb.base/gdbinit.exp 2008-06-17 23:27:44.000000000 +0200 -@@ -0,0 +1,98 @@ -+# Copyright 2005 -+# Free Software Foundation, Inc. -+ -+# This program is free software; you can redistribute it and/or modify -+# it under the terms of the GNU General Public License as published by -+# the Free Software Foundation; either version 2 of the License, or -+# (at your option) any later version. -+# -+# This program is distributed in the hope that it will be useful, -+# but WITHOUT ANY WARRANTY; without even the implied warranty of -+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -+# GNU General Public License for more details. -+# -+# You should have received a copy of the GNU General Public License -+# along with this program; if not, write to the Free Software -+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -+ -+# Please email any bugs, comments, and/or additions to this file to: -+# bug-gdb@prep.ai.mit.edu -+ -+# This file was written by Jeff Johnston . -+ -+if $tracelevel then { -+ strace $tracelevel -+} -+ -+set prms_id 0 -+set bug_id 0 -+ -+# are we on a target board -+if [is_remote target] { -+ return -+} -+ -+ -+global verbose -+global GDB -+global GDBFLAGS -+global gdb_prompt -+global timeout -+global gdb_spawn_id; -+ -+gdb_stop_suppressing_tests; -+ -+verbose "Spawning $GDB -nw" -+ -+if [info exists gdb_spawn_id] { -+ return 0; -+} -+ -+if ![is_remote host] { -+ if { [which $GDB] == 0 } then { -+ perror "$GDB does not exist." -+ exit 1 -+ } -+} -+ -+set env(HOME) [pwd] -+remote_exec build "rm .gdbinit" -+remote_exec build "cp ${srcdir}/${subdir}/gdbinit.sample .gdbinit" -+remote_exec build "chmod 646 .gdbinit" -+ -+set res [remote_spawn host "$GDB -nw [host_info gdb_opts]"]; -+if { $res < 0 || $res == "" } { -+ perror "Spawning $GDB failed." -+ return 1; -+} -+gdb_expect 360 { -+ -re "warning: not using untrusted file.*\.gdbinit.*\[\r\n\]$gdb_prompt $" { -+ pass "untrusted .gdbinit caught." -+ } -+ -re "$gdb_prompt $" { -+ fail "untrusted .gdbinit caught." -+ } -+ timeout { -+ fail "(timeout) untrusted .gdbinit caught." -+ } -+} -+ -+remote_exec build "chmod 644 .gdbinit" -+set res [remote_spawn host "$GDB -nw [host_info gdb_opts]"]; -+if { $res < 0 || $res == "" } { -+ perror "Spawning $GDB failed." -+ return 1; -+} -+gdb_expect 360 { -+ -re "warning: not using untrusted file.*\.gdbinit.*\[\r\n\]$gdb_prompt $" { -+ fail "trusted .gdbinit allowed." -+ } -+ -re "in gdbinit.*$gdb_prompt $" { -+ pass "trusted .gdbinit allowed." -+ } -+ timeout { -+ fail "(timeout) trusted .gdbinit allowed." -+ } -+} -+ -+remote_exec build "rm .gdbinit" -diff -durN gdb-6.7.1.orig/gdb/testsuite/gdb.base/gdbinit.sample gdb-6.7.1/gdb/testsuite/gdb.base/gdbinit.sample ---- gdb-6.7.1.orig/gdb/testsuite/gdb.base/gdbinit.sample 1970-01-01 01:00:00.000000000 +0100 -+++ gdb-6.7.1/gdb/testsuite/gdb.base/gdbinit.sample 2008-06-17 23:27:44.000000000 +0200 -@@ -0,0 +1 @@ -+echo "\nin gdbinit" diff --git a/patches/gdb/6.7.1/110-hppa-offsets.patch b/patches/gdb/6.7.1/110-hppa-offsets.patch deleted file mode 100644 index 06e1e741..00000000 --- a/patches/gdb/6.7.1/110-hppa-offsets.patch +++ /dev/null @@ -1,272 +0,0 @@ -Original patch from gentoo: gentoo/src/patchsets/gdb/6.7.1/45_all_gdb-hppa-offsets.patch --= BEGIN original header =- -sanitized headers dont include asm/offsets.h, so cache a local copy - -http://bugs.gentoo.org/180476 -http://lists.parisc-linux.org/pipermail/parisc-linux/2007-February/031162.html - --= END original header =- -diff -durN gdb-6.7.1.orig/gdb/hppa-linux-nat.c gdb-6.7.1/gdb/hppa-linux-nat.c ---- gdb-6.7.1.orig/gdb/hppa-linux-nat.c 2007-08-23 20:08:33.000000000 +0200 -+++ gdb-6.7.1/gdb/hppa-linux-nat.c 2008-06-17 23:27:45.000000000 +0200 -@@ -32,7 +32,7 @@ - #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,43) - #include - #else --#include -+#include - #endif - - #include "hppa-tdep.h" -diff -durN gdb-6.7.1.orig/gdb/hppa-offsets.h gdb-6.7.1/gdb/hppa-offsets.h ---- gdb-6.7.1.orig/gdb/hppa-offsets.h 1970-01-01 01:00:00.000000000 +0100 -+++ gdb-6.7.1/gdb/hppa-offsets.h 2008-06-17 23:27:45.000000000 +0200 -@@ -0,0 +1,248 @@ -+#ifndef __ASM_OFFSETS_H__ -+#define __ASM_OFFSETS_H__ -+/* -+ * DO NOT MODIFY. -+ * -+ * This file was generated by arch/parisc/Makefile -+ * -+ */ -+ -+#define TASK_THREAD_INFO 4 /* offsetof(struct task_struct, thread_info) */ -+#define TASK_STATE 0 /* offsetof(struct task_struct, state) */ -+#define TASK_FLAGS 12 /* offsetof(struct task_struct, flags) */ -+#define TASK_SIGPENDING 1188 /* offsetof(struct task_struct, pending) */ -+#define TASK_PTRACE 16 /* offsetof(struct task_struct, ptrace) */ -+#define TASK_MM 108 /* offsetof(struct task_struct, mm) */ -+#define TASK_PERSONALITY 132 /* offsetof(struct task_struct, personality) */ -+#define TASK_PID 140 /* offsetof(struct task_struct, pid) */ -+ -+#define TASK_REGS 664 /* offsetof(struct task_struct, thread.regs) */ -+#define TASK_PT_PSW 664 /* offsetof(struct task_struct, thread.regs.gr[ 0]) */ -+#define TASK_PT_GR1 668 /* offsetof(struct task_struct, thread.regs.gr[ 1]) */ -+#define TASK_PT_GR2 672 /* offsetof(struct task_struct, thread.regs.gr[ 2]) */ -+#define TASK_PT_GR3 676 /* offsetof(struct task_struct, thread.regs.gr[ 3]) */ -+#define TASK_PT_GR4 680 /* offsetof(struct task_struct, thread.regs.gr[ 4]) */ -+#define TASK_PT_GR5 684 /* offsetof(struct task_struct, thread.regs.gr[ 5]) */ -+#define TASK_PT_GR6 688 /* offsetof(struct task_struct, thread.regs.gr[ 6]) */ -+#define TASK_PT_GR7 692 /* offsetof(struct task_struct, thread.regs.gr[ 7]) */ -+#define TASK_PT_GR8 696 /* offsetof(struct task_struct, thread.regs.gr[ 8]) */ -+#define TASK_PT_GR9 700 /* offsetof(struct task_struct, thread.regs.gr[ 9]) */ -+#define TASK_PT_GR10 704 /* offsetof(struct task_struct, thread.regs.gr[10]) */ -+#define TASK_PT_GR11 708 /* offsetof(struct task_struct, thread.regs.gr[11]) */ -+#define TASK_PT_GR12 712 /* offsetof(struct task_struct, thread.regs.gr[12]) */ -+#define TASK_PT_GR13 716 /* offsetof(struct task_struct, thread.regs.gr[13]) */ -+#define TASK_PT_GR14 720 /* offsetof(struct task_struct, thread.regs.gr[14]) */ -+#define TASK_PT_GR15 724 /* offsetof(struct task_struct, thread.regs.gr[15]) */ -+#define TASK_PT_GR16 728 /* offsetof(struct task_struct, thread.regs.gr[16]) */ -+#define TASK_PT_GR17 732 /* offsetof(struct task_struct, thread.regs.gr[17]) */ -+#define TASK_PT_GR18 736 /* offsetof(struct task_struct, thread.regs.gr[18]) */ -+#define TASK_PT_GR19 740 /* offsetof(struct task_struct, thread.regs.gr[19]) */ -+#define TASK_PT_GR20 744 /* offsetof(struct task_struct, thread.regs.gr[20]) */ -+#define TASK_PT_GR21 748 /* offsetof(struct task_struct, thread.regs.gr[21]) */ -+#define TASK_PT_GR22 752 /* offsetof(struct task_struct, thread.regs.gr[22]) */ -+#define TASK_PT_GR23 756 /* offsetof(struct task_struct, thread.regs.gr[23]) */ -+#define TASK_PT_GR24 760 /* offsetof(struct task_struct, thread.regs.gr[24]) */ -+#define TASK_PT_GR25 764 /* offsetof(struct task_struct, thread.regs.gr[25]) */ -+#define TASK_PT_GR26 768 /* offsetof(struct task_struct, thread.regs.gr[26]) */ -+#define TASK_PT_GR27 772 /* offsetof(struct task_struct, thread.regs.gr[27]) */ -+#define TASK_PT_GR28 776 /* offsetof(struct task_struct, thread.regs.gr[28]) */ -+#define TASK_PT_GR29 780 /* offsetof(struct task_struct, thread.regs.gr[29]) */ -+#define TASK_PT_GR30 784 /* offsetof(struct task_struct, thread.regs.gr[30]) */ -+#define TASK_PT_GR31 788 /* offsetof(struct task_struct, thread.regs.gr[31]) */ -+#define TASK_PT_FR0 792 /* offsetof(struct task_struct, thread.regs.fr[ 0]) */ -+#define TASK_PT_FR1 800 /* offsetof(struct task_struct, thread.regs.fr[ 1]) */ -+#define TASK_PT_FR2 808 /* offsetof(struct task_struct, thread.regs.fr[ 2]) */ -+#define TASK_PT_FR3 816 /* offsetof(struct task_struct, thread.regs.fr[ 3]) */ -+#define TASK_PT_FR4 824 /* offsetof(struct task_struct, thread.regs.fr[ 4]) */ -+#define TASK_PT_FR5 832 /* offsetof(struct task_struct, thread.regs.fr[ 5]) */ -+#define TASK_PT_FR6 840 /* offsetof(struct task_struct, thread.regs.fr[ 6]) */ -+#define TASK_PT_FR7 848 /* offsetof(struct task_struct, thread.regs.fr[ 7]) */ -+#define TASK_PT_FR8 856 /* offsetof(struct task_struct, thread.regs.fr[ 8]) */ -+#define TASK_PT_FR9 864 /* offsetof(struct task_struct, thread.regs.fr[ 9]) */ -+#define TASK_PT_FR10 872 /* offsetof(struct task_struct, thread.regs.fr[10]) */ -+#define TASK_PT_FR11 880 /* offsetof(struct task_struct, thread.regs.fr[11]) */ -+#define TASK_PT_FR12 888 /* offsetof(struct task_struct, thread.regs.fr[12]) */ -+#define TASK_PT_FR13 896 /* offsetof(struct task_struct, thread.regs.fr[13]) */ -+#define TASK_PT_FR14 904 /* offsetof(struct task_struct, thread.regs.fr[14]) */ -+#define TASK_PT_FR15 912 /* offsetof(struct task_struct, thread.regs.fr[15]) */ -+#define TASK_PT_FR16 920 /* offsetof(struct task_struct, thread.regs.fr[16]) */ -+#define TASK_PT_FR17 928 /* offsetof(struct task_struct, thread.regs.fr[17]) */ -+#define TASK_PT_FR18 936 /* offsetof(struct task_struct, thread.regs.fr[18]) */ -+#define TASK_PT_FR19 944 /* offsetof(struct task_struct, thread.regs.fr[19]) */ -+#define TASK_PT_FR20 952 /* offsetof(struct task_struct, thread.regs.fr[20]) */ -+#define TASK_PT_FR21 960 /* offsetof(struct task_struct, thread.regs.fr[21]) */ -+#define TASK_PT_FR22 968 /* offsetof(struct task_struct, thread.regs.fr[22]) */ -+#define TASK_PT_FR23 976 /* offsetof(struct task_struct, thread.regs.fr[23]) */ -+#define TASK_PT_FR24 984 /* offsetof(struct task_struct, thread.regs.fr[24]) */ -+#define TASK_PT_FR25 992 /* offsetof(struct task_struct, thread.regs.fr[25]) */ -+#define TASK_PT_FR26 1000 /* offsetof(struct task_struct, thread.regs.fr[26]) */ -+#define TASK_PT_FR27 1008 /* offsetof(struct task_struct, thread.regs.fr[27]) */ -+#define TASK_PT_FR28 1016 /* offsetof(struct task_struct, thread.regs.fr[28]) */ -+#define TASK_PT_FR29 1024 /* offsetof(struct task_struct, thread.regs.fr[29]) */ -+#define TASK_PT_FR30 1032 /* offsetof(struct task_struct, thread.regs.fr[30]) */ -+#define TASK_PT_FR31 1040 /* offsetof(struct task_struct, thread.regs.fr[31]) */ -+#define TASK_PT_SR0 1048 /* offsetof(struct task_struct, thread.regs.sr[ 0]) */ -+#define TASK_PT_SR1 1052 /* offsetof(struct task_struct, thread.regs.sr[ 1]) */ -+#define TASK_PT_SR2 1056 /* offsetof(struct task_struct, thread.regs.sr[ 2]) */ -+#define TASK_PT_SR3 1060 /* offsetof(struct task_struct, thread.regs.sr[ 3]) */ -+#define TASK_PT_SR4 1064 /* offsetof(struct task_struct, thread.regs.sr[ 4]) */ -+#define TASK_PT_SR5 1068 /* offsetof(struct task_struct, thread.regs.sr[ 5]) */ -+#define TASK_PT_SR6 1072 /* offsetof(struct task_struct, thread.regs.sr[ 6]) */ -+#define TASK_PT_SR7 1076 /* offsetof(struct task_struct, thread.regs.sr[ 7]) */ -+#define TASK_PT_IASQ0 1080 /* offsetof(struct task_struct, thread.regs.iasq[0]) */ -+#define TASK_PT_IASQ1 1084 /* offsetof(struct task_struct, thread.regs.iasq[1]) */ -+#define TASK_PT_IAOQ0 1088 /* offsetof(struct task_struct, thread.regs.iaoq[0]) */ -+#define TASK_PT_IAOQ1 1092 /* offsetof(struct task_struct, thread.regs.iaoq[1]) */ -+#define TASK_PT_CR27 1096 /* offsetof(struct task_struct, thread.regs.cr27) */ -+#define TASK_PT_ORIG_R28 1104 /* offsetof(struct task_struct, thread.regs.orig_r28) */ -+#define TASK_PT_KSP 1108 /* offsetof(struct task_struct, thread.regs.ksp) */ -+#define TASK_PT_KPC 1112 /* offsetof(struct task_struct, thread.regs.kpc) */ -+#define TASK_PT_SAR 1116 /* offsetof(struct task_struct, thread.regs.sar) */ -+#define TASK_PT_IIR 1120 /* offsetof(struct task_struct, thread.regs.iir) */ -+#define TASK_PT_ISR 1124 /* offsetof(struct task_struct, thread.regs.isr) */ -+#define TASK_PT_IOR 1128 /* offsetof(struct task_struct, thread.regs.ior) */ -+ -+#define TASK_SZ 1272 /* sizeof(struct task_struct) */ -+#define TASK_SZ_ALGN 1344 /* align(sizeof(struct task_struct), 64) */ -+ -+#define PT_PSW 0 /* offsetof(struct pt_regs, gr[ 0]) */ -+#define PT_GR1 4 /* offsetof(struct pt_regs, gr[ 1]) */ -+#define PT_GR2 8 /* offsetof(struct pt_regs, gr[ 2]) */ -+#define PT_GR3 12 /* offsetof(struct pt_regs, gr[ 3]) */ -+#define PT_GR4 16 /* offsetof(struct pt_regs, gr[ 4]) */ -+#define PT_GR5 20 /* offsetof(struct pt_regs, gr[ 5]) */ -+#define PT_GR6 24 /* offsetof(struct pt_regs, gr[ 6]) */ -+#define PT_GR7 28 /* offsetof(struct pt_regs, gr[ 7]) */ -+#define PT_GR8 32 /* offsetof(struct pt_regs, gr[ 8]) */ -+#define PT_GR9 36 /* offsetof(struct pt_regs, gr[ 9]) */ -+#define PT_GR10 40 /* offsetof(struct pt_regs, gr[10]) */ -+#define PT_GR11 44 /* offsetof(struct pt_regs, gr[11]) */ -+#define PT_GR12 48 /* offsetof(struct pt_regs, gr[12]) */ -+#define PT_GR13 52 /* offsetof(struct pt_regs, gr[13]) */ -+#define PT_GR14 56 /* offsetof(struct pt_regs, gr[14]) */ -+#define PT_GR15 60 /* offsetof(struct pt_regs, gr[15]) */ -+#define PT_GR16 64 /* offsetof(struct pt_regs, gr[16]) */ -+#define PT_GR17 68 /* offsetof(struct pt_regs, gr[17]) */ -+#define PT_GR18 72 /* offsetof(struct pt_regs, gr[18]) */ -+#define PT_GR19 76 /* offsetof(struct pt_regs, gr[19]) */ -+#define PT_GR20 80 /* offsetof(struct pt_regs, gr[20]) */ -+#define PT_GR21 84 /* offsetof(struct pt_regs, gr[21]) */ -+#define PT_GR22 88 /* offsetof(struct pt_regs, gr[22]) */ -+#define PT_GR23 92 /* offsetof(struct pt_regs, gr[23]) */ -+#define PT_GR24 96 /* offsetof(struct pt_regs, gr[24]) */ -+#define PT_GR25 100 /* offsetof(struct pt_regs, gr[25]) */ -+#define PT_GR26 104 /* offsetof(struct pt_regs, gr[26]) */ -+#define PT_GR27 108 /* offsetof(struct pt_regs, gr[27]) */ -+#define PT_GR28 112 /* offsetof(struct pt_regs, gr[28]) */ -+#define PT_GR29 116 /* offsetof(struct pt_regs, gr[29]) */ -+#define PT_GR30 120 /* offsetof(struct pt_regs, gr[30]) */ -+#define PT_GR31 124 /* offsetof(struct pt_regs, gr[31]) */ -+#define PT_FR0 128 /* offsetof(struct pt_regs, fr[ 0]) */ -+#define PT_FR1 136 /* offsetof(struct pt_regs, fr[ 1]) */ -+#define PT_FR2 144 /* offsetof(struct pt_regs, fr[ 2]) */ -+#define PT_FR3 152 /* offsetof(struct pt_regs, fr[ 3]) */ -+#define PT_FR4 160 /* offsetof(struct pt_regs, fr[ 4]) */ -+#define PT_FR5 168 /* offsetof(struct pt_regs, fr[ 5]) */ -+#define PT_FR6 176 /* offsetof(struct pt_regs, fr[ 6]) */ -+#define PT_FR7 184 /* offsetof(struct pt_regs, fr[ 7]) */ -+#define PT_FR8 192 /* offsetof(struct pt_regs, fr[ 8]) */ -+#define PT_FR9 200 /* offsetof(struct pt_regs, fr[ 9]) */ -+#define PT_FR10 208 /* offsetof(struct pt_regs, fr[10]) */ -+#define PT_FR11 216 /* offsetof(struct pt_regs, fr[11]) */ -+#define PT_FR12 224 /* offsetof(struct pt_regs, fr[12]) */ -+#define PT_FR13 232 /* offsetof(struct pt_regs, fr[13]) */ -+#define PT_FR14 240 /* offsetof(struct pt_regs, fr[14]) */ -+#define PT_FR15 248 /* offsetof(struct pt_regs, fr[15]) */ -+#define PT_FR16 256 /* offsetof(struct pt_regs, fr[16]) */ -+#define PT_FR17 264 /* offsetof(struct pt_regs, fr[17]) */ -+#define PT_FR18 272 /* offsetof(struct pt_regs, fr[18]) */ -+#define PT_FR19 280 /* offsetof(struct pt_regs, fr[19]) */ -+#define PT_FR20 288 /* offsetof(struct pt_regs, fr[20]) */ -+#define PT_FR21 296 /* offsetof(struct pt_regs, fr[21]) */ -+#define PT_FR22 304 /* offsetof(struct pt_regs, fr[22]) */ -+#define PT_FR23 312 /* offsetof(struct pt_regs, fr[23]) */ -+#define PT_FR24 320 /* offsetof(struct pt_regs, fr[24]) */ -+#define PT_FR25 328 /* offsetof(struct pt_regs, fr[25]) */ -+#define PT_FR26 336 /* offsetof(struct pt_regs, fr[26]) */ -+#define PT_FR27 344 /* offsetof(struct pt_regs, fr[27]) */ -+#define PT_FR28 352 /* offsetof(struct pt_regs, fr[28]) */ -+#define PT_FR29 360 /* offsetof(struct pt_regs, fr[29]) */ -+#define PT_FR30 368 /* offsetof(struct pt_regs, fr[30]) */ -+#define PT_FR31 376 /* offsetof(struct pt_regs, fr[31]) */ -+#define PT_SR0 384 /* offsetof(struct pt_regs, sr[ 0]) */ -+#define PT_SR1 388 /* offsetof(struct pt_regs, sr[ 1]) */ -+#define PT_SR2 392 /* offsetof(struct pt_regs, sr[ 2]) */ -+#define PT_SR3 396 /* offsetof(struct pt_regs, sr[ 3]) */ -+#define PT_SR4 400 /* offsetof(struct pt_regs, sr[ 4]) */ -+#define PT_SR5 404 /* offsetof(struct pt_regs, sr[ 5]) */ -+#define PT_SR6 408 /* offsetof(struct pt_regs, sr[ 6]) */ -+#define PT_SR7 412 /* offsetof(struct pt_regs, sr[ 7]) */ -+#define PT_IASQ0 416 /* offsetof(struct pt_regs, iasq[0]) */ -+#define PT_IASQ1 420 /* offsetof(struct pt_regs, iasq[1]) */ -+#define PT_IAOQ0 424 /* offsetof(struct pt_regs, iaoq[0]) */ -+#define PT_IAOQ1 428 /* offsetof(struct pt_regs, iaoq[1]) */ -+#define PT_CR27 432 /* offsetof(struct pt_regs, cr27) */ -+#define PT_ORIG_R28 440 /* offsetof(struct pt_regs, orig_r28) */ -+#define PT_KSP 444 /* offsetof(struct pt_regs, ksp) */ -+#define PT_KPC 448 /* offsetof(struct pt_regs, kpc) */ -+#define PT_SAR 452 /* offsetof(struct pt_regs, sar) */ -+#define PT_IIR 456 /* offsetof(struct pt_regs, iir) */ -+#define PT_ISR 460 /* offsetof(struct pt_regs, isr) */ -+#define PT_IOR 464 /* offsetof(struct pt_regs, ior) */ -+#define PT_SIZE 472 /* sizeof(struct pt_regs) */ -+#define PT_SZ_ALGN 576 /* align(sizeof(struct pt_regs), 64) */ -+ -+#define TI_TASK 0 /* offsetof(struct thread_info, task) */ -+#define TI_EXEC_DOMAIN 4 /* offsetof(struct thread_info, exec_domain) */ -+#define TI_FLAGS 8 /* offsetof(struct thread_info, flags) */ -+#define TI_CPU 16 /* offsetof(struct thread_info, cpu) */ -+#define TI_SEGMENT 12 /* offsetof(struct thread_info, addr_limit) */ -+#define TI_PRE_COUNT 20 /* offsetof(struct thread_info, preempt_count) */ -+#define THREAD_SZ 44 /* sizeof(struct thread_info) */ -+#define THREAD_SZ_ALGN 128 /* align(sizeof(struct thread_info), 64) */ -+ -+#define IRQSTAT_SIRQ_PEND 0 /* offsetof(irq_cpustat_t, __softirq_pending) */ -+#define IRQSTAT_SZ 64 /* sizeof(irq_cpustat_t) */ -+ -+#define ICACHE_BASE 8 /* offsetof(struct pdc_cache_info, ic_base) */ -+#define ICACHE_STRIDE 12 /* offsetof(struct pdc_cache_info, ic_stride) */ -+#define ICACHE_COUNT 16 /* offsetof(struct pdc_cache_info, ic_count) */ -+#define ICACHE_LOOP 20 /* offsetof(struct pdc_cache_info, ic_loop) */ -+#define DCACHE_BASE 32 /* offsetof(struct pdc_cache_info, dc_base) */ -+#define DCACHE_STRIDE 36 /* offsetof(struct pdc_cache_info, dc_stride) */ -+#define DCACHE_COUNT 40 /* offsetof(struct pdc_cache_info, dc_count) */ -+#define DCACHE_LOOP 44 /* offsetof(struct pdc_cache_info, dc_loop) */ -+#define ITLB_SID_BASE 56 /* offsetof(struct pdc_cache_info, it_sp_base) */ -+#define ITLB_SID_STRIDE 60 /* offsetof(struct pdc_cache_info, it_sp_stride) */ -+#define ITLB_SID_COUNT 64 /* offsetof(struct pdc_cache_info, it_sp_count) */ -+#define ITLB_OFF_BASE 68 /* offsetof(struct pdc_cache_info, it_off_base) */ -+#define ITLB_OFF_STRIDE 72 /* offsetof(struct pdc_cache_info, it_off_stride) */ -+#define ITLB_OFF_COUNT 76 /* offsetof(struct pdc_cache_info, it_off_count) */ -+#define ITLB_LOOP 80 /* offsetof(struct pdc_cache_info, it_loop) */ -+#define DTLB_SID_BASE 92 /* offsetof(struct pdc_cache_info, dt_sp_base) */ -+#define DTLB_SID_STRIDE 96 /* offsetof(struct pdc_cache_info, dt_sp_stride) */ -+#define DTLB_SID_COUNT 100 /* offsetof(struct pdc_cache_info, dt_sp_count) */ -+#define DTLB_OFF_BASE 104 /* offsetof(struct pdc_cache_info, dt_off_base) */ -+#define DTLB_OFF_STRIDE 108 /* offsetof(struct pdc_cache_info, dt_off_stride) */ -+#define DTLB_OFF_COUNT 112 /* offsetof(struct pdc_cache_info, dt_off_count) */ -+#define DTLB_LOOP 116 /* offsetof(struct pdc_cache_info, dt_loop) */ -+ -+#define PA_BLOCKSTEP_BIT 1 /* 31-PT_BLOCKSTEP_BIT */ -+#define PA_SINGLESTEP_BIT 0 /* 31-PT_SINGLESTEP_BIT */ -+ -+#define ASM_PMD_SHIFT 21 /* PMD_SHIFT */ -+#define ASM_PGDIR_SHIFT 21 /* PGDIR_SHIFT */ -+#define ASM_BITS_PER_PGD 11 /* BITS_PER_PGD */ -+#define ASM_BITS_PER_PMD 0 /* BITS_PER_PMD */ -+#define ASM_BITS_PER_PTE 9 /* BITS_PER_PTE */ -+#define ASM_PGD_PMD_OFFSET -8192 /* -(PAGE_SIZE << PGD_ORDER) */ -+#define ASM_PMD_ENTRY 128 /* ((PAGE_OFFSET & PMD_MASK) >> PMD_SHIFT) */ -+#define ASM_PGD_ENTRY 128 /* PAGE_OFFSET >> PGDIR_SHIFT */ -+#define ASM_PGD_ENTRY_SIZE 4 /* PGD_ENTRY_SIZE */ -+#define ASM_PMD_ENTRY_SIZE 4 /* PMD_ENTRY_SIZE */ -+#define ASM_PTE_ENTRY_SIZE 8 /* PTE_ENTRY_SIZE */ -+#define ASM_PT_INITIAL 4 /* PT_INITIAL */ -+#define ASM_PAGE_SIZE 4096 /* PAGE_SIZE */ -+ -+ -+#endif diff --git a/patches/gdb/6.7.1/120-deleted-children.patch b/patches/gdb/6.7.1/120-deleted-children.patch deleted file mode 100644 index 08bbba94..00000000 --- a/patches/gdb/6.7.1/120-deleted-children.patch +++ /dev/null @@ -1,26 +0,0 @@ -Original patch from gentoo: gentoo/src/patchsets/gdb/6.7.1/50_all_gdb-deleted-children.patch --= BEGIN original header =- -http://bugs.gentoo.org/210636 -http://sourceware.org/ml/gdb-patches/2007-11/msg00136.html - -2007-11-07 Vladimir Prus - - Fix crash when a variable object being deleted - has any of its children deleted previously. - - * varobj.c (delete_variable_1): Don't recurse - into deleted children. - --= END original header =- -diff -durN gdb-6.7.1.orig/gdb/varobj.c gdb-6.7.1/gdb/varobj.c ---- gdb-6.7.1.orig/gdb/varobj.c 2007-08-31 21:01:17.000000000 +0200 -+++ gdb-6.7.1/gdb/varobj.c 2008-06-17 23:27:45.000000000 +0200 -@@ -1295,6 +1295,8 @@ - for (i = 0; i < VEC_length (varobj_p, var->children); ++i) - { - varobj_p child = VEC_index (varobj_p, var->children, i); -+ if (!child) -+ continue; - if (!remove_from_parent_p) - child->parent = NULL; - delete_variable_1 (resultp, delcountp, child, 0, only_children_p); diff --git a/patches/gdb/6.7.1/130-dwarf-stack-overflow.patch b/patches/gdb/6.7.1/130-dwarf-stack-overflow.patch deleted file mode 100644 index 764ec65a..00000000 --- a/patches/gdb/6.7.1/130-dwarf-stack-overflow.patch +++ /dev/null @@ -1,52 +0,0 @@ -Original patch from gentoo: gentoo/src/patchsets/gdb/6.7.1/80_all_gdb-6.5-dwarf-stack-overflow.patch --= BEGIN original header =- -http://bugs.gentoo.org/144833 - -for gdb/ChangeLog: -2006-08-22 Will Drewry - Tavis Ormandy - - * dwarf2read.c (decode_locdesc): Enforce location description stack - boundaries. - * dwarfread.c (locval): Likewise. - --= END original header =- -diff -durN gdb-6.7.1.orig/gdb/dwarf2read.c gdb-6.7.1/gdb/dwarf2read.c ---- gdb-6.7.1.orig/gdb/dwarf2read.c 2007-09-05 02:51:48.000000000 +0200 -+++ gdb-6.7.1/gdb/dwarf2read.c 2008-06-17 23:27:46.000000000 +0200 -@@ -9061,8 +9061,7 @@ - callers will only want a very basic result and this can become a - complaint. - -- Note that stack[0] is unused except as a default error return. -- Note that stack overflow is not yet handled. */ -+ Note that stack[0] is unused except as a default error return. */ - - static CORE_ADDR - decode_locdesc (struct dwarf_block *blk, struct dwarf2_cu *cu) -@@ -9079,7 +9078,7 @@ - - i = 0; - stacki = 0; -- stack[stacki] = 0; -+ stack[++stacki] = 0; - - while (i < size) - { -@@ -9261,6 +9260,16 @@ - dwarf_stack_op_name (op)); - return (stack[stacki]); - } -+ /* Enforce maximum stack depth of size-1 to avoid ++stacki writing -+ outside of the allocated space. Also enforce minimum > 0. -+ -- wad@google.com 14 Aug 2006 */ -+ if (stacki >= sizeof (stack) / sizeof (*stack) - 1) -+ internal_error (__FILE__, __LINE__, -+ _("location description stack too deep: %d"), -+ stacki); -+ if (stacki <= 0) -+ internal_error (__FILE__, __LINE__, -+ _("location description stack too shallow")); - } - return (stack[stacki]); - } diff --git a/patches/gdb/6.7/100-security-errata-20050610.patch b/patches/gdb/6.7/100-security-errata-20050610.patch deleted file mode 100644 index a0307ade..00000000 --- a/patches/gdb/6.7/100-security-errata-20050610.patch +++ /dev/null @@ -1,205 +0,0 @@ -Original patch from gentoo: gentoo/src/patchsets/gdb/6.7/35_all_gdb-6.3-security-errata-20050610.patch --= BEGIN original header =- -2005-06-09 Jeff Johnston - - * gdb.base/gdbinit.exp: New testcase. - * gdb.base/gdbinit.sample: Sample .gdbinit for gdbinit.exp. - -2005-06-08 Daniel Jacobowitz - Jeff Johnston - - * Makefile.in (cli-cmds.o): Update. - * configure.in: Add check for getuid. - * configure: Regenerated. - * config.in: Ditto. - * main.c (captured_main): Pass -1 to source_command when loading - gdbinit files. - * cli/cli-cmds.c: Include "gdb_stat.h" and . - (source_command): Update documentation. Check permissions if - FROM_TTY is -1. - --= END original header =- -diff -durN gdb-6.7.orig/gdb/cli/cli-cmds.c gdb-6.7/gdb/cli/cli-cmds.c ---- gdb-6.7.orig/gdb/cli/cli-cmds.c 2007-08-23 20:08:47.000000000 +0200 -+++ gdb-6.7/gdb/cli/cli-cmds.c 2008-06-17 23:25:23.000000000 +0200 -@@ -36,6 +36,7 @@ - #include "objfiles.h" - #include "source.h" - #include "disasm.h" -+#include "gdb_stat.h" - - #include "ui-out.h" - -@@ -459,12 +460,31 @@ - - if (fd == -1) - { -- if (from_tty) -+ if (from_tty > 0) - perror_with_name (file); - else - return; - } - -+#ifdef HAVE_GETUID -+ if (from_tty == -1) -+ { -+ struct stat statbuf; -+ if (fstat (fd, &statbuf) < 0) -+ { -+ perror_with_name (file); -+ close (fd); -+ return; -+ } -+ if (statbuf.st_uid != getuid () || (statbuf.st_mode & S_IWOTH)) -+ { -+ warning (_("not using untrusted file \"%s\""), file); -+ close (fd); -+ return; -+ } -+ } -+#endif -+ - stream = fdopen (fd, FOPEN_RT); - script_from_file (stream, file); - -diff -durN gdb-6.7.orig/gdb/main.c gdb-6.7/gdb/main.c ---- gdb-6.7.orig/gdb/main.c 2007-08-23 20:08:36.000000000 +0200 -+++ gdb-6.7/gdb/main.c 2008-06-17 23:25:23.000000000 +0200 -@@ -688,7 +688,7 @@ - - if (!inhibit_gdbinit) - { -- catch_command_errors (source_script, homeinit, 0, RETURN_MASK_ALL); -+ catch_command_errors (source_script, homeinit, -1, RETURN_MASK_ALL); - } - - /* Do stats; no need to do them elsewhere since we'll only -@@ -766,7 +766,7 @@ - || memcmp ((char *) &homebuf, (char *) &cwdbuf, sizeof (struct stat))) - if (!inhibit_gdbinit) - { -- catch_command_errors (source_script, gdbinit, 0, RETURN_MASK_ALL); -+ catch_command_errors (source_script, gdbinit, -1, RETURN_MASK_ALL); - } - - for (i = 0; i < ncmd; i++) -diff -durN gdb-6.7.orig/gdb/Makefile.in gdb-6.7/gdb/Makefile.in ---- gdb-6.7.orig/gdb/Makefile.in 2007-09-05 02:14:02.000000000 +0200 -+++ gdb-6.7/gdb/Makefile.in 2008-06-17 23:25:23.000000000 +0200 -@@ -2882,7 +2882,7 @@ - $(expression_h) $(frame_h) $(value_h) $(language_h) $(filenames_h) \ - $(objfiles_h) $(source_h) $(disasm_h) $(ui_out_h) $(top_h) \ - $(cli_decode_h) $(cli_script_h) $(cli_setshow_h) $(cli_cmds_h) \ -- $(tui_h) -+ $(tui_h) $(gdb_stat_h) - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/cli/cli-cmds.c - cli-decode.o: $(srcdir)/cli/cli-decode.c $(defs_h) $(symtab_h) \ - $(gdb_regex_h) $(gdb_string_h) $(completer_h) $(ui_out_h) \ -diff -durN gdb-6.7.orig/gdb/testsuite/gdb.base/gdbinit.exp gdb-6.7/gdb/testsuite/gdb.base/gdbinit.exp ---- gdb-6.7.orig/gdb/testsuite/gdb.base/gdbinit.exp 1970-01-01 01:00:00.000000000 +0100 -+++ gdb-6.7/gdb/testsuite/gdb.base/gdbinit.exp 2008-06-17 23:25:23.000000000 +0200 -@@ -0,0 +1,98 @@ -+# Copyright 2005 -+# Free Software Foundation, Inc. -+ -+# This program is free software; you can redistribute it and/or modify -+# it under the terms of the GNU General Public License as published by -+# the Free Software Foundation; either version 2 of the License, or -+# (at your option) any later version. -+# -+# This program is distributed in the hope that it will be useful, -+# but WITHOUT ANY WARRANTY; without even the implied warranty of -+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -+# GNU General Public License for more details. -+# -+# You should have received a copy of the GNU General Public License -+# along with this program; if not, write to the Free Software -+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -+ -+# Please email any bugs, comments, and/or additions to this file to: -+# bug-gdb@prep.ai.mit.edu -+ -+# This file was written by Jeff Johnston . -+ -+if $tracelevel then { -+ strace $tracelevel -+} -+ -+set prms_id 0 -+set bug_id 0 -+ -+# are we on a target board -+if [is_remote target] { -+ return -+} -+ -+ -+global verbose -+global GDB -+global GDBFLAGS -+global gdb_prompt -+global timeout -+global gdb_spawn_id; -+ -+gdb_stop_suppressing_tests; -+ -+verbose "Spawning $GDB -nw" -+ -+if [info exists gdb_spawn_id] { -+ return 0; -+} -+ -+if ![is_remote host] { -+ if { [which $GDB] == 0 } then { -+ perror "$GDB does not exist." -+ exit 1 -+ } -+} -+ -+set env(HOME) [pwd] -+remote_exec build "rm .gdbinit" -+remote_exec build "cp ${srcdir}/${subdir}/gdbinit.sample .gdbinit" -+remote_exec build "chmod 646 .gdbinit" -+ -+set res [remote_spawn host "$GDB -nw [host_info gdb_opts]"]; -+if { $res < 0 || $res == "" } { -+ perror "Spawning $GDB failed." -+ return 1; -+} -+gdb_expect 360 { -+ -re "warning: not using untrusted file.*\.gdbinit.*\[\r\n\]$gdb_prompt $" { -+ pass "untrusted .gdbinit caught." -+ } -+ -re "$gdb_prompt $" { -+ fail "untrusted .gdbinit caught." -+ } -+ timeout { -+ fail "(timeout) untrusted .gdbinit caught." -+ } -+} -+ -+remote_exec build "chmod 644 .gdbinit" -+set res [remote_spawn host "$GDB -nw [host_info gdb_opts]"]; -+if { $res < 0 || $res == "" } { -+ perror "Spawning $GDB failed." -+ return 1; -+} -+gdb_expect 360 { -+ -re "warning: not using untrusted file.*\.gdbinit.*\[\r\n\]$gdb_prompt $" { -+ fail "trusted .gdbinit allowed." -+ } -+ -re "in gdbinit.*$gdb_prompt $" { -+ pass "trusted .gdbinit allowed." -+ } -+ timeout { -+ fail "(timeout) trusted .gdbinit allowed." -+ } -+} -+ -+remote_exec build "rm .gdbinit" -diff -durN gdb-6.7.orig/gdb/testsuite/gdb.base/gdbinit.sample gdb-6.7/gdb/testsuite/gdb.base/gdbinit.sample ---- gdb-6.7.orig/gdb/testsuite/gdb.base/gdbinit.sample 1970-01-01 01:00:00.000000000 +0100 -+++ gdb-6.7/gdb/testsuite/gdb.base/gdbinit.sample 2008-06-17 23:25:23.000000000 +0200 -@@ -0,0 +1 @@ -+echo "\nin gdbinit" diff --git a/patches/gdb/6.7/110-hppa-offsets.patch b/patches/gdb/6.7/110-hppa-offsets.patch deleted file mode 100644 index 9de831b1..00000000 --- a/patches/gdb/6.7/110-hppa-offsets.patch +++ /dev/null @@ -1,272 +0,0 @@ -Original patch from gentoo: gentoo/src/patchsets/gdb/6.7/45_all_gdb-hppa-offsets.patch --= BEGIN original header =- -sanitized headers dont include asm/offsets.h, so cache a local copy - -http://bugs.gentoo.org/180476 -http://lists.parisc-linux.org/pipermail/parisc-linux/2007-February/031162.html - --= END original header =- -diff -durN gdb-6.7.orig/gdb/hppa-linux-nat.c gdb-6.7/gdb/hppa-linux-nat.c ---- gdb-6.7.orig/gdb/hppa-linux-nat.c 2007-08-23 20:08:33.000000000 +0200 -+++ gdb-6.7/gdb/hppa-linux-nat.c 2008-06-17 23:25:28.000000000 +0200 -@@ -32,7 +32,7 @@ - #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,43) - #include - #else --#include -+#include - #endif - - #include "hppa-tdep.h" -diff -durN gdb-6.7.orig/gdb/hppa-offsets.h gdb-6.7/gdb/hppa-offsets.h ---- gdb-6.7.orig/gdb/hppa-offsets.h 1970-01-01 01:00:00.000000000 +0100 -+++ gdb-6.7/gdb/hppa-offsets.h 2008-06-17 23:25:28.000000000 +0200 -@@ -0,0 +1,248 @@ -+#ifndef __ASM_OFFSETS_H__ -+#define __ASM_OFFSETS_H__ -+/* -+ * DO NOT MODIFY. -+ * -+ * This file was generated by arch/parisc/Makefile -+ * -+ */ -+ -+#define TASK_THREAD_INFO 4 /* offsetof(struct task_struct, thread_info) */ -+#define TASK_STATE 0 /* offsetof(struct task_struct, state) */ -+#define TASK_FLAGS 12 /* offsetof(struct task_struct, flags) */ -+#define TASK_SIGPENDING 1188 /* offsetof(struct task_struct, pending) */ -+#define TASK_PTRACE 16 /* offsetof(struct task_struct, ptrace) */ -+#define TASK_MM 108 /* offsetof(struct task_struct, mm) */ -+#define TASK_PERSONALITY 132 /* offsetof(struct task_struct, personality) */ -+#define TASK_PID 140 /* offsetof(struct task_struct, pid) */ -+ -+#define TASK_REGS 664 /* offsetof(struct task_struct, thread.regs) */ -+#define TASK_PT_PSW 664 /* offsetof(struct task_struct, thread.regs.gr[ 0]) */ -+#define TASK_PT_GR1 668 /* offsetof(struct task_struct, thread.regs.gr[ 1]) */ -+#define TASK_PT_GR2 672 /* offsetof(struct task_struct, thread.regs.gr[ 2]) */ -+#define TASK_PT_GR3 676 /* offsetof(struct task_struct, thread.regs.gr[ 3]) */ -+#define TASK_PT_GR4 680 /* offsetof(struct task_struct, thread.regs.gr[ 4]) */ -+#define TASK_PT_GR5 684 /* offsetof(struct task_struct, thread.regs.gr[ 5]) */ -+#define TASK_PT_GR6 688 /* offsetof(struct task_struct, thread.regs.gr[ 6]) */ -+#define TASK_PT_GR7 692 /* offsetof(struct task_struct, thread.regs.gr[ 7]) */ -+#define TASK_PT_GR8 696 /* offsetof(struct task_struct, thread.regs.gr[ 8]) */ -+#define TASK_PT_GR9 700 /* offsetof(struct task_struct, thread.regs.gr[ 9]) */ -+#define TASK_PT_GR10 704 /* offsetof(struct task_struct, thread.regs.gr[10]) */ -+#define TASK_PT_GR11 708 /* offsetof(struct task_struct, thread.regs.gr[11]) */ -+#define TASK_PT_GR12 712 /* offsetof(struct task_struct, thread.regs.gr[12]) */ -+#define TASK_PT_GR13 716 /* offsetof(struct task_struct, thread.regs.gr[13]) */ -+#define TASK_PT_GR14 720 /* offsetof(struct task_struct, thread.regs.gr[14]) */ -+#define TASK_PT_GR15 724 /* offsetof(struct task_struct, thread.regs.gr[15]) */ -+#define TASK_PT_GR16 728 /* offsetof(struct task_struct, thread.regs.gr[16]) */ -+#define TASK_PT_GR17 732 /* offsetof(struct task_struct, thread.regs.gr[17]) */ -+#define TASK_PT_GR18 736 /* offsetof(struct task_struct, thread.regs.gr[18]) */ -+#define TASK_PT_GR19 740 /* offsetof(struct task_struct, thread.regs.gr[19]) */ -+#define TASK_PT_GR20 744 /* offsetof(struct task_struct, thread.regs.gr[20]) */ -+#define TASK_PT_GR21 748 /* offsetof(struct task_struct, thread.regs.gr[21]) */ -+#define TASK_PT_GR22 752 /* offsetof(struct task_struct, thread.regs.gr[22]) */ -+#define TASK_PT_GR23 756 /* offsetof(struct task_struct, thread.regs.gr[23]) */ -+#define TASK_PT_GR24 760 /* offsetof(struct task_struct, thread.regs.gr[24]) */ -+#define TASK_PT_GR25 764 /* offsetof(struct task_struct, thread.regs.gr[25]) */ -+#define TASK_PT_GR26 768 /* offsetof(struct task_struct, thread.regs.gr[26]) */ -+#define TASK_PT_GR27 772 /* offsetof(struct task_struct, thread.regs.gr[27]) */ -+#define TASK_PT_GR28 776 /* offsetof(struct task_struct, thread.regs.gr[28]) */ -+#define TASK_PT_GR29 780 /* offsetof(struct task_struct, thread.regs.gr[29]) */ -+#define TASK_PT_GR30 784 /* offsetof(struct task_struct, thread.regs.gr[30]) */ -+#define TASK_PT_GR31 788 /* offsetof(struct task_struct, thread.regs.gr[31]) */ -+#define TASK_PT_FR0 792 /* offsetof(struct task_struct, thread.regs.fr[ 0]) */ -+#define TASK_PT_FR1 800 /* offsetof(struct task_struct, thread.regs.fr[ 1]) */ -+#define TASK_PT_FR2 808 /* offsetof(struct task_struct, thread.regs.fr[ 2]) */ -+#define TASK_PT_FR3 816 /* offsetof(struct task_struct, thread.regs.fr[ 3]) */ -+#define TASK_PT_FR4 824 /* offsetof(struct task_struct, thread.regs.fr[ 4]) */ -+#define TASK_PT_FR5 832 /* offsetof(struct task_struct, thread.regs.fr[ 5]) */ -+#define TASK_PT_FR6 840 /* offsetof(struct task_struct, thread.regs.fr[ 6]) */ -+#define TASK_PT_FR7 848 /* offsetof(struct task_struct, thread.regs.fr[ 7]) */ -+#define TASK_PT_FR8 856 /* offsetof(struct task_struct, thread.regs.fr[ 8]) */ -+#define TASK_PT_FR9 864 /* offsetof(struct task_struct, thread.regs.fr[ 9]) */ -+#define TASK_PT_FR10 872 /* offsetof(struct task_struct, thread.regs.fr[10]) */ -+#define TASK_PT_FR11 880 /* offsetof(struct task_struct, thread.regs.fr[11]) */ -+#define TASK_PT_FR12 888 /* offsetof(struct task_struct, thread.regs.fr[12]) */ -+#define TASK_PT_FR13 896 /* offsetof(struct task_struct, thread.regs.fr[13]) */ -+#define TASK_PT_FR14 904 /* offsetof(struct task_struct, thread.regs.fr[14]) */ -+#define TASK_PT_FR15 912 /* offsetof(struct task_struct, thread.regs.fr[15]) */ -+#define TASK_PT_FR16 920 /* offsetof(struct task_struct, thread.regs.fr[16]) */ -+#define TASK_PT_FR17 928 /* offsetof(struct task_struct, thread.regs.fr[17]) */ -+#define TASK_PT_FR18 936 /* offsetof(struct task_struct, thread.regs.fr[18]) */ -+#define TASK_PT_FR19 944 /* offsetof(struct task_struct, thread.regs.fr[19]) */ -+#define TASK_PT_FR20 952 /* offsetof(struct task_struct, thread.regs.fr[20]) */ -+#define TASK_PT_FR21 960 /* offsetof(struct task_struct, thread.regs.fr[21]) */ -+#define TASK_PT_FR22 968 /* offsetof(struct task_struct, thread.regs.fr[22]) */ -+#define TASK_PT_FR23 976 /* offsetof(struct task_struct, thread.regs.fr[23]) */ -+#define TASK_PT_FR24 984 /* offsetof(struct task_struct, thread.regs.fr[24]) */ -+#define TASK_PT_FR25 992 /* offsetof(struct task_struct, thread.regs.fr[25]) */ -+#define TASK_PT_FR26 1000 /* offsetof(struct task_struct, thread.regs.fr[26]) */ -+#define TASK_PT_FR27 1008 /* offsetof(struct task_struct, thread.regs.fr[27]) */ -+#define TASK_PT_FR28 1016 /* offsetof(struct task_struct, thread.regs.fr[28]) */ -+#define TASK_PT_FR29 1024 /* offsetof(struct task_struct, thread.regs.fr[29]) */ -+#define TASK_PT_FR30 1032 /* offsetof(struct task_struct, thread.regs.fr[30]) */ -+#define TASK_PT_FR31 1040 /* offsetof(struct task_struct, thread.regs.fr[31]) */ -+#define TASK_PT_SR0 1048 /* offsetof(struct task_struct, thread.regs.sr[ 0]) */ -+#define TASK_PT_SR1 1052 /* offsetof(struct task_struct, thread.regs.sr[ 1]) */ -+#define TASK_PT_SR2 1056 /* offsetof(struct task_struct, thread.regs.sr[ 2]) */ -+#define TASK_PT_SR3 1060 /* offsetof(struct task_struct, thread.regs.sr[ 3]) */ -+#define TASK_PT_SR4 1064 /* offsetof(struct task_struct, thread.regs.sr[ 4]) */ -+#define TASK_PT_SR5 1068 /* offsetof(struct task_struct, thread.regs.sr[ 5]) */ -+#define TASK_PT_SR6 1072 /* offsetof(struct task_struct, thread.regs.sr[ 6]) */ -+#define TASK_PT_SR7 1076 /* offsetof(struct task_struct, thread.regs.sr[ 7]) */ -+#define TASK_PT_IASQ0 1080 /* offsetof(struct task_struct, thread.regs.iasq[0]) */ -+#define TASK_PT_IASQ1 1084 /* offsetof(struct task_struct, thread.regs.iasq[1]) */ -+#define TASK_PT_IAOQ0 1088 /* offsetof(struct task_struct, thread.regs.iaoq[0]) */ -+#define TASK_PT_IAOQ1 1092 /* offsetof(struct task_struct, thread.regs.iaoq[1]) */ -+#define TASK_PT_CR27 1096 /* offsetof(struct task_struct, thread.regs.cr27) */ -+#define TASK_PT_ORIG_R28 1104 /* offsetof(struct task_struct, thread.regs.orig_r28) */ -+#define TASK_PT_KSP 1108 /* offsetof(struct task_struct, thread.regs.ksp) */ -+#define TASK_PT_KPC 1112 /* offsetof(struct task_struct, thread.regs.kpc) */ -+#define TASK_PT_SAR 1116 /* offsetof(struct task_struct, thread.regs.sar) */ -+#define TASK_PT_IIR 1120 /* offsetof(struct task_struct, thread.regs.iir) */ -+#define TASK_PT_ISR 1124 /* offsetof(struct task_struct, thread.regs.isr) */ -+#define TASK_PT_IOR 1128 /* offsetof(struct task_struct, thread.regs.ior) */ -+ -+#define TASK_SZ 1272 /* sizeof(struct task_struct) */ -+#define TASK_SZ_ALGN 1344 /* align(sizeof(struct task_struct), 64) */ -+ -+#define PT_PSW 0 /* offsetof(struct pt_regs, gr[ 0]) */ -+#define PT_GR1 4 /* offsetof(struct pt_regs, gr[ 1]) */ -+#define PT_GR2 8 /* offsetof(struct pt_regs, gr[ 2]) */ -+#define PT_GR3 12 /* offsetof(struct pt_regs, gr[ 3]) */ -+#define PT_GR4 16 /* offsetof(struct pt_regs, gr[ 4]) */ -+#define PT_GR5 20 /* offsetof(struct pt_regs, gr[ 5]) */ -+#define PT_GR6 24 /* offsetof(struct pt_regs, gr[ 6]) */ -+#define PT_GR7 28 /* offsetof(struct pt_regs, gr[ 7]) */ -+#define PT_GR8 32 /* offsetof(struct pt_regs, gr[ 8]) */ -+#define PT_GR9 36 /* offsetof(struct pt_regs, gr[ 9]) */ -+#define PT_GR10 40 /* offsetof(struct pt_regs, gr[10]) */ -+#define PT_GR11 44 /* offsetof(struct pt_regs, gr[11]) */ -+#define PT_GR12 48 /* offsetof(struct pt_regs, gr[12]) */ -+#define PT_GR13 52 /* offsetof(struct pt_regs, gr[13]) */ -+#define PT_GR14 56 /* offsetof(struct pt_regs, gr[14]) */ -+#define PT_GR15 60 /* offsetof(struct pt_regs, gr[15]) */ -+#define PT_GR16 64 /* offsetof(struct pt_regs, gr[16]) */ -+#define PT_GR17 68 /* offsetof(struct pt_regs, gr[17]) */ -+#define PT_GR18 72 /* offsetof(struct pt_regs, gr[18]) */ -+#define PT_GR19 76 /* offsetof(struct pt_regs, gr[19]) */ -+#define PT_GR20 80 /* offsetof(struct pt_regs, gr[20]) */ -+#define PT_GR21 84 /* offsetof(struct pt_regs, gr[21]) */ -+#define PT_GR22 88 /* offsetof(struct pt_regs, gr[22]) */ -+#define PT_GR23 92 /* offsetof(struct pt_regs, gr[23]) */ -+#define PT_GR24 96 /* offsetof(struct pt_regs, gr[24]) */ -+#define PT_GR25 100 /* offsetof(struct pt_regs, gr[25]) */ -+#define PT_GR26 104 /* offsetof(struct pt_regs, gr[26]) */ -+#define PT_GR27 108 /* offsetof(struct pt_regs, gr[27]) */ -+#define PT_GR28 112 /* offsetof(struct pt_regs, gr[28]) */ -+#define PT_GR29 116 /* offsetof(struct pt_regs, gr[29]) */ -+#define PT_GR30 120 /* offsetof(struct pt_regs, gr[30]) */ -+#define PT_GR31 124 /* offsetof(struct pt_regs, gr[31]) */ -+#define PT_FR0 128 /* offsetof(struct pt_regs, fr[ 0]) */ -+#define PT_FR1 136 /* offsetof(struct pt_regs, fr[ 1]) */ -+#define PT_FR2 144 /* offsetof(struct pt_regs, fr[ 2]) */ -+#define PT_FR3 152 /* offsetof(struct pt_regs, fr[ 3]) */ -+#define PT_FR4 160 /* offsetof(struct pt_regs, fr[ 4]) */ -+#define PT_FR5 168 /* offsetof(struct pt_regs, fr[ 5]) */ -+#define PT_FR6 176 /* offsetof(struct pt_regs, fr[ 6]) */ -+#define PT_FR7 184 /* offsetof(struct pt_regs, fr[ 7]) */ -+#define PT_FR8 192 /* offsetof(struct pt_regs, fr[ 8]) */ -+#define PT_FR9 200 /* offsetof(struct pt_regs, fr[ 9]) */ -+#define PT_FR10 208 /* offsetof(struct pt_regs, fr[10]) */ -+#define PT_FR11 216 /* offsetof(struct pt_regs, fr[11]) */ -+#define PT_FR12 224 /* offsetof(struct pt_regs, fr[12]) */ -+#define PT_FR13 232 /* offsetof(struct pt_regs, fr[13]) */ -+#define PT_FR14 240 /* offsetof(struct pt_regs, fr[14]) */ -+#define PT_FR15 248 /* offsetof(struct pt_regs, fr[15]) */ -+#define PT_FR16 256 /* offsetof(struct pt_regs, fr[16]) */ -+#define PT_FR17 264 /* offsetof(struct pt_regs, fr[17]) */ -+#define PT_FR18 272 /* offsetof(struct pt_regs, fr[18]) */ -+#define PT_FR19 280 /* offsetof(struct pt_regs, fr[19]) */ -+#define PT_FR20 288 /* offsetof(struct pt_regs, fr[20]) */ -+#define PT_FR21 296 /* offsetof(struct pt_regs, fr[21]) */ -+#define PT_FR22 304 /* offsetof(struct pt_regs, fr[22]) */ -+#define PT_FR23 312 /* offsetof(struct pt_regs, fr[23]) */ -+#define PT_FR24 320 /* offsetof(struct pt_regs, fr[24]) */ -+#define PT_FR25 328 /* offsetof(struct pt_regs, fr[25]) */ -+#define PT_FR26 336 /* offsetof(struct pt_regs, fr[26]) */ -+#define PT_FR27 344 /* offsetof(struct pt_regs, fr[27]) */ -+#define PT_FR28 352 /* offsetof(struct pt_regs, fr[28]) */ -+#define PT_FR29 360 /* offsetof(struct pt_regs, fr[29]) */ -+#define PT_FR30 368 /* offsetof(struct pt_regs, fr[30]) */ -+#define PT_FR31 376 /* offsetof(struct pt_regs, fr[31]) */ -+#define PT_SR0 384 /* offsetof(struct pt_regs, sr[ 0]) */ -+#define PT_SR1 388 /* offsetof(struct pt_regs, sr[ 1]) */ -+#define PT_SR2 392 /* offsetof(struct pt_regs, sr[ 2]) */ -+#define PT_SR3 396 /* offsetof(struct pt_regs, sr[ 3]) */ -+#define PT_SR4 400 /* offsetof(struct pt_regs, sr[ 4]) */ -+#define PT_SR5 404 /* offsetof(struct pt_regs, sr[ 5]) */ -+#define PT_SR6 408 /* offsetof(struct pt_regs, sr[ 6]) */ -+#define PT_SR7 412 /* offsetof(struct pt_regs, sr[ 7]) */ -+#define PT_IASQ0 416 /* offsetof(struct pt_regs, iasq[0]) */ -+#define PT_IASQ1 420 /* offsetof(struct pt_regs, iasq[1]) */ -+#define PT_IAOQ0 424 /* offsetof(struct pt_regs, iaoq[0]) */ -+#define PT_IAOQ1 428 /* offsetof(struct pt_regs, iaoq[1]) */ -+#define PT_CR27 432 /* offsetof(struct pt_regs, cr27) */ -+#define PT_ORIG_R28 440 /* offsetof(struct pt_regs, orig_r28) */ -+#define PT_KSP 444 /* offsetof(struct pt_regs, ksp) */ -+#define PT_KPC 448 /* offsetof(struct pt_regs, kpc) */ -+#define PT_SAR 452 /* offsetof(struct pt_regs, sar) */ -+#define PT_IIR 456 /* offsetof(struct pt_regs, iir) */ -+#define PT_ISR 460 /* offsetof(struct pt_regs, isr) */ -+#define PT_IOR 464 /* offsetof(struct pt_regs, ior) */ -+#define PT_SIZE 472 /* sizeof(struct pt_regs) */ -+#define PT_SZ_ALGN 576 /* align(sizeof(struct pt_regs), 64) */ -+ -+#define TI_TASK 0 /* offsetof(struct thread_info, task) */ -+#define TI_EXEC_DOMAIN 4 /* offsetof(struct thread_info, exec_domain) */ -+#define TI_FLAGS 8 /* offsetof(struct thread_info, flags) */ -+#define TI_CPU 16 /* offsetof(struct thread_info, cpu) */ -+#define TI_SEGMENT 12 /* offsetof(struct thread_info, addr_limit) */ -+#define TI_PRE_COUNT 20 /* offsetof(struct thread_info, preempt_count) */ -+#define THREAD_SZ 44 /* sizeof(struct thread_info) */ -+#define THREAD_SZ_ALGN 128 /* align(sizeof(struct thread_info), 64) */ -+ -+#define IRQSTAT_SIRQ_PEND 0 /* offsetof(irq_cpustat_t, __softirq_pending) */ -+#define IRQSTAT_SZ 64 /* sizeof(irq_cpustat_t) */ -+ -+#define ICACHE_BASE 8 /* offsetof(struct pdc_cache_info, ic_base) */ -+#define ICACHE_STRIDE 12 /* offsetof(struct pdc_cache_info, ic_stride) */ -+#define ICACHE_COUNT 16 /* offsetof(struct pdc_cache_info, ic_count) */ -+#define ICACHE_LOOP 20 /* offsetof(struct pdc_cache_info, ic_loop) */ -+#define DCACHE_BASE 32 /* offsetof(struct pdc_cache_info, dc_base) */ -+#define DCACHE_STRIDE 36 /* offsetof(struct pdc_cache_info, dc_stride) */ -+#define DCACHE_COUNT 40 /* offsetof(struct pdc_cache_info, dc_count) */ -+#define DCACHE_LOOP 44 /* offsetof(struct pdc_cache_info, dc_loop) */ -+#define ITLB_SID_BASE 56 /* offsetof(struct pdc_cache_info, it_sp_base) */ -+#define ITLB_SID_STRIDE 60 /* offsetof(struct pdc_cache_info, it_sp_stride) */ -+#define ITLB_SID_COUNT 64 /* offsetof(struct pdc_cache_info, it_sp_count) */ -+#define ITLB_OFF_BASE 68 /* offsetof(struct pdc_cache_info, it_off_base) */ -+#define ITLB_OFF_STRIDE 72 /* offsetof(struct pdc_cache_info, it_off_stride) */ -+#define ITLB_OFF_COUNT 76 /* offsetof(struct pdc_cache_info, it_off_count) */ -+#define ITLB_LOOP 80 /* offsetof(struct pdc_cache_info, it_loop) */ -+#define DTLB_SID_BASE 92 /* offsetof(struct pdc_cache_info, dt_sp_base) */ -+#define DTLB_SID_STRIDE 96 /* offsetof(struct pdc_cache_info, dt_sp_stride) */ -+#define DTLB_SID_COUNT 100 /* offsetof(struct pdc_cache_info, dt_sp_count) */ -+#define DTLB_OFF_BASE 104 /* offsetof(struct pdc_cache_info, dt_off_base) */ -+#define DTLB_OFF_STRIDE 108 /* offsetof(struct pdc_cache_info, dt_off_stride) */ -+#define DTLB_OFF_COUNT 112 /* offsetof(struct pdc_cache_info, dt_off_count) */ -+#define DTLB_LOOP 116 /* offsetof(struct pdc_cache_info, dt_loop) */ -+ -+#define PA_BLOCKSTEP_BIT 1 /* 31-PT_BLOCKSTEP_BIT */ -+#define PA_SINGLESTEP_BIT 0 /* 31-PT_SINGLESTEP_BIT */ -+ -+#define ASM_PMD_SHIFT 21 /* PMD_SHIFT */ -+#define ASM_PGDIR_SHIFT 21 /* PGDIR_SHIFT */ -+#define ASM_BITS_PER_PGD 11 /* BITS_PER_PGD */ -+#define ASM_BITS_PER_PMD 0 /* BITS_PER_PMD */ -+#define ASM_BITS_PER_PTE 9 /* BITS_PER_PTE */ -+#define ASM_PGD_PMD_OFFSET -8192 /* -(PAGE_SIZE << PGD_ORDER) */ -+#define ASM_PMD_ENTRY 128 /* ((PAGE_OFFSET & PMD_MASK) >> PMD_SHIFT) */ -+#define ASM_PGD_ENTRY 128 /* PAGE_OFFSET >> PGDIR_SHIFT */ -+#define ASM_PGD_ENTRY_SIZE 4 /* PGD_ENTRY_SIZE */ -+#define ASM_PMD_ENTRY_SIZE 4 /* PMD_ENTRY_SIZE */ -+#define ASM_PTE_ENTRY_SIZE 8 /* PTE_ENTRY_SIZE */ -+#define ASM_PT_INITIAL 4 /* PT_INITIAL */ -+#define ASM_PAGE_SIZE 4096 /* PAGE_SIZE */ -+ -+ -+#endif diff --git a/patches/gdb/6.7/120-dwarf-stack-overflow.patch b/patches/gdb/6.7/120-dwarf-stack-overflow.patch deleted file mode 100644 index 171e64e8..00000000 --- a/patches/gdb/6.7/120-dwarf-stack-overflow.patch +++ /dev/null @@ -1,52 +0,0 @@ -Original patch from gentoo: gentoo/src/patchsets/gdb/6.7/80_all_gdb-6.5-dwarf-stack-overflow.patch --= BEGIN original header =- -http://bugs.gentoo.org/144833 - -for gdb/ChangeLog: -2006-08-22 Will Drewry - Tavis Ormandy - - * dwarf2read.c (decode_locdesc): Enforce location description stack - boundaries. - * dwarfread.c (locval): Likewise. - --= END original header =- -diff -durN gdb-6.7.orig/gdb/dwarf2read.c gdb-6.7/gdb/dwarf2read.c ---- gdb-6.7.orig/gdb/dwarf2read.c 2007-09-05 02:51:48.000000000 +0200 -+++ gdb-6.7/gdb/dwarf2read.c 2008-06-17 23:25:38.000000000 +0200 -@@ -9061,8 +9061,7 @@ - callers will only want a very basic result and this can become a - complaint. - -- Note that stack[0] is unused except as a default error return. -- Note that stack overflow is not yet handled. */ -+ Note that stack[0] is unused except as a default error return. */ - - static CORE_ADDR - decode_locdesc (struct dwarf_block *blk, struct dwarf2_cu *cu) -@@ -9079,7 +9078,7 @@ - - i = 0; - stacki = 0; -- stack[stacki] = 0; -+ stack[++stacki] = 0; - - while (i < size) - { -@@ -9261,6 +9260,16 @@ - dwarf_stack_op_name (op)); - return (stack[stacki]); - } -+ /* Enforce maximum stack depth of size-1 to avoid ++stacki writing -+ outside of the allocated space. Also enforce minimum > 0. -+ -- wad@google.com 14 Aug 2006 */ -+ if (stacki >= sizeof (stack) / sizeof (*stack) - 1) -+ internal_error (__FILE__, __LINE__, -+ _("location description stack too deep: %d"), -+ stacki); -+ if (stacki <= 0) -+ internal_error (__FILE__, __LINE__, -+ _("location description stack too shallow")); - } - return (stack[stacki]); - } -- cgit v1.2.3 From 1b8b28d040a917c4d271f68729451d0a2c4a42e5 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Wed, 21 Oct 2009 00:06:22 +0200 Subject: kernel/linux: remove the version prompt --- config/kernel/linux.in | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'config') diff --git a/config/kernel/linux.in b/config/kernel/linux.in index e5792c55..04e9d7b3 100644 --- a/config/kernel/linux.in +++ b/config/kernel/linux.in @@ -90,16 +90,10 @@ config KERNEL_V_2_6_27_35 bool prompt "2.6.27.35 (long-term stable)" -config KERNEL_V_select - bool - prompt "Other version (EXPERIMENTAL)" - depends on EXPERIMENTAL - endchoice config KERNEL_VERSION string - prompt "Kernel version" if KERNEL_V_select # Don't remove next line # CT_INSERT_VERSION_STRING_BELOW default "2.6.31.1" if KERNEL_V_2_6_31_1 @@ -116,13 +110,6 @@ config KERNEL_VERSION default "2.6.29.6" if KERNEL_V_2_6_29_6 default "2.6.28.10" if KERNEL_V_2_6_28_10 default "2.6.27.35" if KERNEL_V_2_6_27_35 - help - Enter here the kernel version you want to use, if it is - not listed above. Something like V.P.S or V.P.S.E, where: - V: VERSION - P: PATCHLEVEL - S: SUBLEVEL - E: EXTRAVERSION choice bool -- cgit v1.2.3 From af691e9712de6bb6bbb4c6ffc7c8b54615472a3f Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Tue, 27 Oct 2009 20:09:54 +0100 Subject: binutils: remove duplicate config entries for binutils & elf2flt --- config/binutils/binutils.in | 3 --- config/binutils/elf2flt.in | 3 --- 2 files changed, 6 deletions(-) (limited to 'config') diff --git a/config/binutils/binutils.in b/config/binutils/binutils.in index 77117a25..eb4061d1 100644 --- a/config/binutils/binutils.in +++ b/config/binutils/binutils.in @@ -2,9 +2,6 @@ comment "GNU binutils" -config BINUTILS_VERSION - string - choice bool prompt "binutils version" diff --git a/config/binutils/elf2flt.in b/config/binutils/elf2flt.in index c46e599a..4f95ec76 100644 --- a/config/binutils/elf2flt.in +++ b/config/binutils/elf2flt.in @@ -4,9 +4,6 @@ if ARCH_BINFMT_FLAT comment "elf2flt" -config ELF2FLT_VERSION - string - choice bool prompt "elf2flt version" -- cgit v1.2.3 From 8515a28fce49950c03e8ec5ec1894b67a30f13c5 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Tue, 27 Oct 2009 18:49:15 +0100 Subject: kernel/linux: add latest versions --- config/kernel/linux.in | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) (limited to 'config') diff --git a/config/kernel/linux.in b/config/kernel/linux.in index 04e9d7b3..5235e2cb 100644 --- a/config/kernel/linux.in +++ b/config/kernel/linux.in @@ -34,6 +34,22 @@ choice # Don't remove next line # CT_INSERT_VERSION_BELOW +config KERNEL_V_2_6_31_5 + bool + prompt "2.6.31.5" + +config KERNEL_V_2_6_31_4 + bool + prompt "2.6.31.4" + +config KERNEL_V_2_6_31_3 + bool + prompt "2.6.31.3" + +config KERNEL_V_2_6_31_2 + bool + prompt "2.6.31.2" + config KERNEL_V_2_6_31_1 bool prompt "2.6.31.1" @@ -42,6 +58,10 @@ config KERNEL_V_2_6_31 bool prompt "2.6.31" +config KERNEL_V_3_6_30_9 + bool + prompt "3.6.30.9" + config KERNEL_V_3_6_30_8 bool prompt "3.6.30.8" @@ -86,9 +106,9 @@ config KERNEL_V_2_6_28_10 bool prompt "2.6.28.10" -config KERNEL_V_2_6_27_35 +config KERNEL_V_2_6_27_38 bool - prompt "2.6.27.35 (long-term stable)" + prompt "2.6.27.38 (long-term stable)" endchoice @@ -96,8 +116,13 @@ config KERNEL_VERSION string # Don't remove next line # CT_INSERT_VERSION_STRING_BELOW + default "2.6.31.5" if KERNEL_V_2_6_31_5 + default "2.6.31.4" if KERNEL_V_2_6_31_4 + default "2.6.31.3" if KERNEL_V_2_6_31_3 + default "2.6.31.2" if KERNEL_V_2_6_31_2 default "2.6.31.1" if KERNEL_V_2_6_31_1 default "2.6.31" if KERNEL_V_2_6_31 + default "3.6.30.9" if KERNEL_V_3_6_30_9 default "3.6.30.8" if KERNEL_V_3_6_30_8 default "3.6.30.7" if KERNEL_V_3_6_30_7 default "2.6.30.6" if KERNEL_V_2_6_30_6 @@ -109,7 +134,7 @@ config KERNEL_VERSION default "2.6.30" if KERNEL_V_2_6_30 default "2.6.29.6" if KERNEL_V_2_6_29_6 default "2.6.28.10" if KERNEL_V_2_6_28_10 - default "2.6.27.35" if KERNEL_V_2_6_27_35 + default "2.6.27.38" if KERNEL_V_2_6_27_38 choice bool -- cgit v1.2.3 From 1a6400b025d2680c997176d2a3d53f2689d921da Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Tue, 20 Oct 2009 23:41:11 +0200 Subject: cc/gcc: add latest 4.4.2 version as EXPERIMENTAL --- config/cc/gcc.in | 8 ++ patches/gcc/4.4.2/100-alpha-mieee-default.patch | 24 ++++++ patches/gcc/4.4.2/110-trampolinewarn.patch | 27 +++++++ patches/gcc/4.4.2/120-java-nomulti.patch | 46 +++++++++++ patches/gcc/4.4.2/130-cross-compile.patch | 39 +++++++++ .../gcc/4.4.2/140-default-format-security.patch | 49 +++++++++++ patches/gcc/4.4.2/150-default-fortify-source.patch | 26 ++++++ patches/gcc/4.4.2/160-netbsd-symbolic.patch | 11 +++ patches/gcc/4.4.2/170-sparc64-bsd.patch | 29 +++++++ patches/gcc/4.4.2/180-libgomp-no-werror.patch | 12 +++ patches/gcc/4.4.2/190-flatten-switch-stmt-00.patch | 24 ++++++ patches/gcc/4.4.2/200-libiberty.h-asprintf.patch | 15 ++++ patches/gcc/4.4.2/210-arm-unbreak-armv4t.patch | 12 +++ patches/gcc/4.4.2/220-libiberty-pic.patch | 11 +++ .../gcc/4.4.2/230-superh-default-multilib.patch | 12 +++ patches/gcc/4.4.2/240-libstdc++-pic.patch | 53 ++++++++++++ patches/gcc/4.4.2/250-ia64-noteGNUstack.patch | 79 ++++++++++++++++++ patches/gcc/4.4.2/260-sh-libgcc-stacks.patch | 25 ++++++ patches/gcc/4.4.2/270-sh-pr24836.patch | 24 ++++++ patches/gcc/4.4.2/280-freebsd.patch | 94 ++++++++++++++++++++++ patches/gcc/4.4.2/290-freebsd.patch | 64 +++++++++++++++ patches/gcc/4.4.2/300-uclibc-conf.patch | 35 ++++++++ patches/gcc/4.4.2/310-missing-execinfo_h.patch | 12 +++ patches/gcc/4.4.2/320-c99-snprintf.patch | 12 +++ .../gcc/4.4.2/330-libmudflap-susv3-legacy.patch | 48 +++++++++++ patches/gcc/4.4.2/340-ecjx-host-cc.patch | 13 +++ 26 files changed, 804 insertions(+) create mode 100644 patches/gcc/4.4.2/100-alpha-mieee-default.patch create mode 100644 patches/gcc/4.4.2/110-trampolinewarn.patch create mode 100644 patches/gcc/4.4.2/120-java-nomulti.patch create mode 100644 patches/gcc/4.4.2/130-cross-compile.patch create mode 100644 patches/gcc/4.4.2/140-default-format-security.patch create mode 100644 patches/gcc/4.4.2/150-default-fortify-source.patch create mode 100644 patches/gcc/4.4.2/160-netbsd-symbolic.patch create mode 100644 patches/gcc/4.4.2/170-sparc64-bsd.patch create mode 100644 patches/gcc/4.4.2/180-libgomp-no-werror.patch create mode 100644 patches/gcc/4.4.2/190-flatten-switch-stmt-00.patch create mode 100644 patches/gcc/4.4.2/200-libiberty.h-asprintf.patch create mode 100644 patches/gcc/4.4.2/210-arm-unbreak-armv4t.patch create mode 100644 patches/gcc/4.4.2/220-libiberty-pic.patch create mode 100644 patches/gcc/4.4.2/230-superh-default-multilib.patch create mode 100644 patches/gcc/4.4.2/240-libstdc++-pic.patch create mode 100644 patches/gcc/4.4.2/250-ia64-noteGNUstack.patch create mode 100644 patches/gcc/4.4.2/260-sh-libgcc-stacks.patch create mode 100644 patches/gcc/4.4.2/270-sh-pr24836.patch create mode 100644 patches/gcc/4.4.2/280-freebsd.patch create mode 100644 patches/gcc/4.4.2/290-freebsd.patch create mode 100644 patches/gcc/4.4.2/300-uclibc-conf.patch create mode 100644 patches/gcc/4.4.2/310-missing-execinfo_h.patch create mode 100644 patches/gcc/4.4.2/320-c99-snprintf.patch create mode 100644 patches/gcc/4.4.2/330-libmudflap-susv3-legacy.patch create mode 100644 patches/gcc/4.4.2/340-ecjx-host-cc.patch (limited to 'config') diff --git a/config/cc/gcc.in b/config/cc/gcc.in index e5314a6e..a3c3eed2 100644 --- a/config/cc/gcc.in +++ b/config/cc/gcc.in @@ -19,6 +19,13 @@ choice # Don't remove next line # CT_INSERT_VERSION_BELOW +config CC_V_4_4_2 + bool + prompt "4.4.2 (EXPERIMENTAL)" + depends on EXPERIMENTAL + select CC_GCC_4_3_or_later + select CC_GCC_4_4_or_later + config CC_V_4_4_1 bool prompt "4.4.1 (EXPERIMENTAL)" @@ -108,6 +115,7 @@ config CC_VERSION string # Don't remove next line # CT_INSERT_VERSION_STRING_BELOW + default "4.4.2" if CC_V_4_4_2 default "4.4.1" if CC_V_4_4_1 default "4.4.0" if CC_V_4_4_0 default "4.3.4" if CC_V_4_3_4 diff --git a/patches/gcc/4.4.2/100-alpha-mieee-default.patch b/patches/gcc/4.4.2/100-alpha-mieee-default.patch new file mode 100644 index 00000000..7cf0dc4f --- /dev/null +++ b/patches/gcc/4.4.2/100-alpha-mieee-default.patch @@ -0,0 +1,24 @@ +diff -durN gcc-4.4.0.orig/gcc/config/alpha/alpha.h gcc-4.4.0/gcc/config/alpha/alpha.h +--- gcc-4.4.0.orig/gcc/config/alpha/alpha.h 2009-02-20 16:20:38.000000000 +0100 ++++ gcc-4.4.0/gcc/config/alpha/alpha.h 2009-05-27 21:37:58.000000000 +0200 +@@ -95,6 +95,8 @@ + while (0) + #endif + ++#define CPP_SPEC "%{!no-ieee:-mieee}" ++ + #define WORD_SWITCH_TAKES_ARG(STR) \ + (!strcmp (STR, "rpath") || DEFAULT_WORD_SWITCH_TAKES_ARG(STR)) + +diff -durN gcc-4.4.0.orig/gcc/config/alpha/alpha.opt gcc-4.4.0/gcc/config/alpha/alpha.opt +--- gcc-4.4.0.orig/gcc/config/alpha/alpha.opt 2007-08-02 12:49:31.000000000 +0200 ++++ gcc-4.4.0/gcc/config/alpha/alpha.opt 2009-05-27 21:37:58.000000000 +0200 +@@ -39,7 +39,7 @@ + Request IEEE-conformant math library routines (OSF/1) + + mieee +-Target Report RejectNegative Mask(IEEE) ++Target Report Mask(IEEE) + Emit IEEE-conformant code, without inexact exceptions + + mieee-with-inexact diff --git a/patches/gcc/4.4.2/110-trampolinewarn.patch b/patches/gcc/4.4.2/110-trampolinewarn.patch new file mode 100644 index 00000000..f3ef4997 --- /dev/null +++ b/patches/gcc/4.4.2/110-trampolinewarn.patch @@ -0,0 +1,27 @@ +diff -durN gcc-4.4.0.orig/gcc/builtins.c gcc-4.4.0/gcc/builtins.c +--- gcc-4.4.0.orig/gcc/builtins.c 2009-03-30 19:42:27.000000000 +0200 ++++ gcc-4.4.0/gcc/builtins.c 2009-05-27 21:38:01.000000000 +0200 +@@ -5768,6 +5768,9 @@ + trampolines_created = 1; + INITIALIZE_TRAMPOLINE (r_tramp, r_func, r_chain); + ++ if (warn_trampolines) ++ warning (OPT_Wtrampolines, "generating trampoline in object (requires executable stack)"); ++ + return const0_rtx; + } + +diff -durN gcc-4.4.0.orig/gcc/common.opt gcc-4.4.0/gcc/common.opt +--- gcc-4.4.0.orig/gcc/common.opt 2009-03-28 18:28:45.000000000 +0100 ++++ gcc-4.4.0/gcc/common.opt 2009-05-27 21:38:01.000000000 +0200 +@@ -197,6 +197,10 @@ + Common Var(warn_type_limits) Init(-1) Warning + Warn if a comparison is always true or always false due to the limited range of the data type + ++Wtrampolines ++Common Var(warn_trampolines) Init(1) ++Warn whenever a trampoline is generated ++ + Wuninitialized + Common Var(warn_uninitialized) Warning + Warn about uninitialized automatic variables diff --git a/patches/gcc/4.4.2/120-java-nomulti.patch b/patches/gcc/4.4.2/120-java-nomulti.patch new file mode 100644 index 00000000..645479c6 --- /dev/null +++ b/patches/gcc/4.4.2/120-java-nomulti.patch @@ -0,0 +1,46 @@ +diff -durN gcc-4.4.0.orig/libjava/configure gcc-4.4.0/libjava/configure +--- gcc-4.4.0.orig/libjava/configure 2009-04-21 11:08:08.000000000 +0200 ++++ gcc-4.4.0/libjava/configure 2009-05-27 21:38:03.000000000 +0200 +@@ -1021,6 +1021,8 @@ + default=yes + --enable-java-maintainer-mode + allow rebuilding of .class and .h files ++ --enable-libjava-multilib ++ build libjava as multilib + --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors + --enable-maintainer-mode enable make rules and dependencies not useful +@@ -1973,6 +1975,16 @@ + fi + + ++# Check whether --enable-libjava-multilib was given. ++if test "${enable_libjava_multilib+set}" = set; then ++ enableval=$enable_libjava_multilib; ++fi ++ ++if test "$enable_libjava_multilib" = no; then ++ multilib=no ++ ac_configure_args="$ac_configure_args --disable-multilib" ++fi ++ + # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX. + + +diff -durN gcc-4.4.0.orig/libjava/configure.ac gcc-4.4.0/libjava/configure.ac +--- gcc-4.4.0.orig/libjava/configure.ac 2009-04-09 23:54:28.000000000 +0200 ++++ gcc-4.4.0/libjava/configure.ac 2009-05-27 21:38:03.000000000 +0200 +@@ -139,6 +139,13 @@ + [allow rebuilding of .class and .h files])) + AM_CONDITIONAL(JAVA_MAINTAINER_MODE, test "$enable_java_maintainer_mode" = yes) + ++AC_ARG_ENABLE(libjava-multilib, ++ AS_HELP_STRING([--enable-libjava-multilib], [build libjava as multilib])) ++if test "$enable_libjava_multilib" = no; then ++ multilib=no ++ ac_configure_args="$ac_configure_args --disable-multilib" ++fi ++ + # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX. + GCC_NO_EXECUTABLES + diff --git a/patches/gcc/4.4.2/130-cross-compile.patch b/patches/gcc/4.4.2/130-cross-compile.patch new file mode 100644 index 00000000..76fe7c85 --- /dev/null +++ b/patches/gcc/4.4.2/130-cross-compile.patch @@ -0,0 +1,39 @@ +diff -durN gcc-4.4.0.orig/gcc/configure gcc-4.4.0/gcc/configure +--- gcc-4.4.0.orig/gcc/configure 2009-03-24 18:46:03.000000000 +0100 ++++ gcc-4.4.0/gcc/configure 2009-05-27 21:38:06.000000000 +0200 +@@ -13997,7 +13997,7 @@ + | powerpc*-*-*,powerpc64*-*-*) + CROSS="$CROSS -DNATIVE_CROSS" ;; + esac +-elif test "x$TARGET_SYSTEM_ROOT" != x; then ++elif test "x$TARGET_SYSTEM_ROOT" != x -o $build != $host; then + SYSTEM_HEADER_DIR=$build_system_header_dir + fi + +diff -durN gcc-4.4.0.orig/gcc/configure.ac gcc-4.4.0/gcc/configure.ac +--- gcc-4.4.0.orig/gcc/configure.ac 2009-03-24 18:46:03.000000000 +0100 ++++ gcc-4.4.0/gcc/configure.ac 2009-05-27 21:38:06.000000000 +0200 +@@ -1720,7 +1720,7 @@ + | powerpc*-*-*,powerpc64*-*-*) + CROSS="$CROSS -DNATIVE_CROSS" ;; + esac +-elif test "x$TARGET_SYSTEM_ROOT" != x; then ++elif test "x$TARGET_SYSTEM_ROOT" != x -o $build != $host; then + SYSTEM_HEADER_DIR=$build_system_header_dir + fi + +diff -durN gcc-4.4.0.orig/gcc/unwind-dw2.c gcc-4.4.0/gcc/unwind-dw2.c +--- gcc-4.4.0.orig/gcc/unwind-dw2.c 2009-04-10 01:23:07.000000000 +0200 ++++ gcc-4.4.0/gcc/unwind-dw2.c 2009-05-27 21:38:06.000000000 +0200 +@@ -329,9 +329,11 @@ + } + #endif + ++#ifndef inhibit_libc + #ifdef MD_UNWIND_SUPPORT + #include MD_UNWIND_SUPPORT + #endif ++#endif + + /* Extract any interesting information from the CIE for the translation + unit F belongs to. Return a pointer to the byte after the augmentation, diff --git a/patches/gcc/4.4.2/140-default-format-security.patch b/patches/gcc/4.4.2/140-default-format-security.patch new file mode 100644 index 00000000..51942f58 --- /dev/null +++ b/patches/gcc/4.4.2/140-default-format-security.patch @@ -0,0 +1,49 @@ +diff -durN gcc-4.4.0.orig/gcc/c-common.c gcc-4.4.0/gcc/c-common.c +--- gcc-4.4.0.orig/gcc/c-common.c 2009-03-30 19:42:27.000000000 +0200 ++++ gcc-4.4.0/gcc/c-common.c 2009-05-27 21:38:08.000000000 +0200 +@@ -301,7 +301,7 @@ + /* Warn about format/argument anomalies in calls to formatted I/O functions + (*printf, *scanf, strftime, strfmon, etc.). */ + +-int warn_format; ++int warn_format = 1; + + /* Warn about using __null (as NULL in C++) as sentinel. For code compiled + with GCC this doesn't matter as __null is guaranteed to have the right +diff -durN gcc-4.4.0.orig/gcc/c.opt gcc-4.4.0/gcc/c.opt +--- gcc-4.4.0.orig/gcc/c.opt 2009-03-18 22:14:53.000000000 +0100 ++++ gcc-4.4.0/gcc/c.opt 2009-05-27 21:38:08.000000000 +0200 +@@ -236,7 +236,7 @@ + Warn about format strings that contain NUL bytes + + Wformat-security +-C ObjC C++ ObjC++ Var(warn_format_security) Warning ++C ObjC C++ ObjC++ Var(warn_format_security) Init(1) Warning + Warn about possible security problems with format functions + + Wformat-y2k +diff -durN gcc-4.4.0.orig/gcc/doc/invoke.texi gcc-4.4.0/gcc/doc/invoke.texi +--- gcc-4.4.0.orig/gcc/doc/invoke.texi 2009-04-01 09:18:47.000000000 +0200 ++++ gcc-4.4.0/gcc/doc/invoke.texi 2009-05-27 21:38:08.000000000 +0200 +@@ -2867,6 +2867,9 @@ + @option{-Wformat-nonliteral}, @option{-Wformat-security}, and + @option{-Wformat=2} are available, but are not included in @option{-Wall}. + ++NOTE: In Gentoo, this option is enabled by default for C, C++, ObjC, ObjC++. ++To disable, use @option{-Wformat=0}. ++ + @item -Wformat-y2k + @opindex Wformat-y2k + @opindex Wno-format-y2k +@@ -2920,6 +2923,11 @@ + in future warnings may be added to @option{-Wformat-security} that are not + included in @option{-Wformat-nonliteral}.) + ++NOTE: In Gentoo, this option is enabled by default for C, C++, ObjC, ObjC++. ++To disable, use @option{-Wno-format-security}, or disable all format warnings ++with @option{-Wformat=0}. To make format security warnings fatal, specify ++@option{-Werror=format-security}. ++ + @item -Wformat=2 + @opindex Wformat=2 + @opindex Wno-format=2 diff --git a/patches/gcc/4.4.2/150-default-fortify-source.patch b/patches/gcc/4.4.2/150-default-fortify-source.patch new file mode 100644 index 00000000..a68227f1 --- /dev/null +++ b/patches/gcc/4.4.2/150-default-fortify-source.patch @@ -0,0 +1,26 @@ +diff -durN gcc-4.4.0.orig/gcc/doc/invoke.texi gcc-4.4.0/gcc/doc/invoke.texi +--- gcc-4.4.0.orig/gcc/doc/invoke.texi 2009-05-27 21:38:11.000000000 +0200 ++++ gcc-4.4.0/gcc/doc/invoke.texi 2009-05-27 21:38:11.000000000 +0200 +@@ -5411,6 +5411,11 @@ + Please note the warning under @option{-fgcse} about + invoking @option{-O2} on programs that use computed gotos. + ++NOTE: In Gentoo, @option{-D_FORTIFY_SOURCE=2} is set by default, and is ++activated when @option{-O} is set to 2 or higher. This enables additional ++compile-time and run-time checks for several libc functions. To disable, ++specify either @option{-U_FORTIFY_SOURCE} or @option{-D_FORTIFY_SOURCE=0}. ++ + @item -O3 + @opindex O3 + Optimize yet more. @option{-O3} turns on all optimizations specified +diff -durN gcc-4.4.0.orig/gcc/gcc.c gcc-4.4.0/gcc/gcc.c +--- gcc-4.4.0.orig/gcc/gcc.c 2009-03-17 22:25:59.000000000 +0100 ++++ gcc-4.4.0/gcc/gcc.c 2009-05-27 21:38:11.000000000 +0200 +@@ -807,6 +807,7 @@ + %{H} %C %{D*&U*&A*} %{i*} %Z %i\ + %{fmudflap:-D_MUDFLAP -include mf-runtime.h}\ + %{fmudflapth:-D_MUDFLAP -D_MUDFLAPTH -include mf-runtime.h}\ ++ %{!D_FORTIFY_SOURCE:%{!D_FORTIFY_SOURCE=*:%{!U_FORTIFY_SOURCE:-D_FORTIFY_SOURCE=2}}}\ + %{E|M|MM:%W{o*}}"; + + /* This contains cpp options which are common with cc1_options and are passed diff --git a/patches/gcc/4.4.2/160-netbsd-symbolic.patch b/patches/gcc/4.4.2/160-netbsd-symbolic.patch new file mode 100644 index 00000000..fe1f1cb6 --- /dev/null +++ b/patches/gcc/4.4.2/160-netbsd-symbolic.patch @@ -0,0 +1,11 @@ +diff -durN gcc-4.4.0.orig/gcc/config/netbsd-elf.h gcc-4.4.0/gcc/config/netbsd-elf.h +--- gcc-4.4.0.orig/gcc/config/netbsd-elf.h 2007-09-03 18:14:04.000000000 +0200 ++++ gcc-4.4.0/gcc/config/netbsd-elf.h 2009-05-27 21:38:14.000000000 +0200 +@@ -82,6 +82,7 @@ + #define NETBSD_LINK_SPEC_ELF \ + "%{assert*} %{R*} %{rpath*} \ + %{shared:-shared} \ ++ %{symbolic:-Bsymbolic} \ + %{!shared: \ + -dc -dp \ + %{!nostdlib: \ diff --git a/patches/gcc/4.4.2/170-sparc64-bsd.patch b/patches/gcc/4.4.2/170-sparc64-bsd.patch new file mode 100644 index 00000000..99a5eea1 --- /dev/null +++ b/patches/gcc/4.4.2/170-sparc64-bsd.patch @@ -0,0 +1,29 @@ +diff -durN gcc-4.4.0.orig/gcc/config/sparc/freebsd.h gcc-4.4.0/gcc/config/sparc/freebsd.h +--- gcc-4.4.0.orig/gcc/config/sparc/freebsd.h 2007-08-02 12:49:31.000000000 +0200 ++++ gcc-4.4.0/gcc/config/sparc/freebsd.h 2009-05-27 21:38:16.000000000 +0200 +@@ -25,9 +25,22 @@ + /* FreeBSD needs the platform name (sparc64) defined. + Emacs needs to know if the arch is 64 or 32-bits. */ + +-#undef CPP_CPU64_DEFAULT_SPEC +-#define CPP_CPU64_DEFAULT_SPEC \ +- "-D__sparc64__ -D__sparc_v9__ -D__sparcv9 -D__arch64__" ++#undef FBSD_TARGET_CPU_CPP_BUILTINS ++#define FBSD_TARGET_CPU_CPP_BUILTINS() \ ++ do \ ++ { \ ++ if (TARGET_ARCH64) \ ++ { \ ++ builtin_define ("__sparc64__"); \ ++ builtin_define ("__sparc_v9__"); \ ++ builtin_define ("__sparcv9"); \ ++ } \ ++ else \ ++ builtin_define ("__sparc"); \ ++ builtin_define ("__sparc__"); \ ++ } \ ++ while (0) ++ + + #define LINK_SPEC "%(link_arch) \ + %{!mno-relax:%{!r:-relax}} \ diff --git a/patches/gcc/4.4.2/180-libgomp-no-werror.patch b/patches/gcc/4.4.2/180-libgomp-no-werror.patch new file mode 100644 index 00000000..9d2adf07 --- /dev/null +++ b/patches/gcc/4.4.2/180-libgomp-no-werror.patch @@ -0,0 +1,12 @@ +diff -durN gcc-4.4.0.orig/libgomp/configure gcc-4.4.0/libgomp/configure +--- gcc-4.4.0.orig/libgomp/configure 2009-04-21 11:08:08.000000000 +0200 ++++ gcc-4.4.0/libgomp/configure 2009-05-27 21:38:19.000000000 +0200 +@@ -3334,7 +3334,7 @@ + + # Add -Wall -Werror if we are using GCC. + if test "x$GCC" = "xyes"; then +- XCFLAGS="$XCFLAGS -Wall -Werror" ++ XCFLAGS="$XCFLAGS -Wall" + fi + + # Find other programs we need. diff --git a/patches/gcc/4.4.2/190-flatten-switch-stmt-00.patch b/patches/gcc/4.4.2/190-flatten-switch-stmt-00.patch new file mode 100644 index 00000000..8db1cccc --- /dev/null +++ b/patches/gcc/4.4.2/190-flatten-switch-stmt-00.patch @@ -0,0 +1,24 @@ +diff -durN gcc-4.4.0.orig/gcc/stmt.c gcc-4.4.0/gcc/stmt.c +--- gcc-4.4.0.orig/gcc/stmt.c 2009-02-27 20:49:42.000000000 +0100 ++++ gcc-4.4.0/gcc/stmt.c 2009-05-27 21:38:21.000000000 +0200 +@@ -2376,7 +2376,11 @@ + use_cost_table + = (TREE_CODE (orig_type) != ENUMERAL_TYPE + && estimate_case_costs (case_list)); +- balance_case_nodes (&case_list, NULL); ++ /* When optimizing for size, we want a straight list to avoid ++ jumps as much as possible. This basically creates an if-else ++ chain. */ ++ if (!optimize_size) ++ balance_case_nodes (&case_list, NULL); + emit_case_nodes (index, case_list, default_label, index_type); + if (default_label) + emit_jump (default_label); +@@ -2942,6 +2946,7 @@ + { + if (!node_has_low_bound (node, index_type)) + { ++ if (!optimize_size) /* don't jl to the .default_label. */ + emit_cmp_and_jump_insns (index, + convert_modes + (mode, imode, diff --git a/patches/gcc/4.4.2/200-libiberty.h-asprintf.patch b/patches/gcc/4.4.2/200-libiberty.h-asprintf.patch new file mode 100644 index 00000000..02784be1 --- /dev/null +++ b/patches/gcc/4.4.2/200-libiberty.h-asprintf.patch @@ -0,0 +1,15 @@ +diff -durN gcc-4.4.0.orig/include/libiberty.h gcc-4.4.0/include/libiberty.h +--- gcc-4.4.0.orig/include/libiberty.h 2008-06-24 03:42:31.000000000 +0200 ++++ gcc-4.4.0/include/libiberty.h 2009-05-27 21:38:24.000000000 +0200 +@@ -595,8 +595,11 @@ + /* Like sprintf but provides a pointer to malloc'd storage, which must + be freed by the caller. */ + ++/* asprintf may be declared as a macro by glibc with __USE_FORTIFY_LEVEL. */ ++#ifndef asprintf + extern int asprintf (char **, const char *, ...) ATTRIBUTE_PRINTF_2; + #endif ++#endif + + #if !HAVE_DECL_VASPRINTF + /* Like vsprintf but provides a pointer to malloc'd storage, which diff --git a/patches/gcc/4.4.2/210-arm-unbreak-armv4t.patch b/patches/gcc/4.4.2/210-arm-unbreak-armv4t.patch new file mode 100644 index 00000000..06eafc5c --- /dev/null +++ b/patches/gcc/4.4.2/210-arm-unbreak-armv4t.patch @@ -0,0 +1,12 @@ +diff -durN gcc-4.4.0.orig/gcc/config/arm/linux-eabi.h gcc-4.4.0/gcc/config/arm/linux-eabi.h +--- gcc-4.4.0.orig/gcc/config/arm/linux-eabi.h 2007-11-08 14:44:09.000000000 +0100 ++++ gcc-4.4.0/gcc/config/arm/linux-eabi.h 2009-05-27 21:38:26.000000000 +0200 +@@ -44,7 +44,7 @@ + The ARM10TDMI core is the default for armv5t, so set + SUBTARGET_CPU_DEFAULT to achieve this. */ + #undef SUBTARGET_CPU_DEFAULT +-#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm10tdmi ++#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm9tdmi + + /* TARGET_BIG_ENDIAN_DEFAULT is set in + config.gcc for big endian configurations. */ diff --git a/patches/gcc/4.4.2/220-libiberty-pic.patch b/patches/gcc/4.4.2/220-libiberty-pic.patch new file mode 100644 index 00000000..ff13a4fd --- /dev/null +++ b/patches/gcc/4.4.2/220-libiberty-pic.patch @@ -0,0 +1,11 @@ +diff -durN gcc-4.4.0.orig/libiberty/Makefile.in gcc-4.4.0/libiberty/Makefile.in +--- gcc-4.4.0.orig/libiberty/Makefile.in 2008-10-22 15:30:19.000000000 +0200 ++++ gcc-4.4.0/libiberty/Makefile.in 2009-05-27 21:38:29.000000000 +0200 +@@ -227,6 +227,7 @@ + $(AR) $(AR_FLAGS) $(TARGETLIB) \ + $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \ + $(RANLIB) $(TARGETLIB); \ ++ cp $(TARGETLIB) ../ ; \ + cd ..; \ + else true; fi + diff --git a/patches/gcc/4.4.2/230-superh-default-multilib.patch b/patches/gcc/4.4.2/230-superh-default-multilib.patch new file mode 100644 index 00000000..7c719e8b --- /dev/null +++ b/patches/gcc/4.4.2/230-superh-default-multilib.patch @@ -0,0 +1,12 @@ +diff -durN gcc-4.4.0.orig/gcc/config.gcc gcc-4.4.0/gcc/config.gcc +--- gcc-4.4.0.orig/gcc/config.gcc 2009-04-17 13:58:41.000000000 +0200 ++++ gcc-4.4.0/gcc/config.gcc 2009-05-27 21:38:31.000000000 +0200 +@@ -2121,7 +2121,7 @@ + if test x${sh_multilibs} = x ; then + case ${target} in + sh64-superh-linux* | \ +- sh[1234]*) sh_multilibs=${sh_cpu_target} ;; ++ sh[1234]*) sh_multilibs=`cd ${srcdir}/config/sh ; echo t-mlib-sh[1-4]* | sed 's:t-mlib-sh:,m:g;s: ::g'` ;; + sh64* | sh5*) sh_multilibs=m5-32media,m5-32media-nofpu,m5-compact,m5-compact-nofpu,m5-64media,m5-64media-nofpu ;; + sh-superh-*) sh_multilibs=m4,m4-single,m4-single-only,m4-nofpu ;; + sh*-*-linux*) sh_multilibs=m1,m3e,m4 ;; diff --git a/patches/gcc/4.4.2/240-libstdc++-pic.patch b/patches/gcc/4.4.2/240-libstdc++-pic.patch new file mode 100644 index 00000000..b951dfce --- /dev/null +++ b/patches/gcc/4.4.2/240-libstdc++-pic.patch @@ -0,0 +1,53 @@ +diff -durN gcc-4.4.0.orig/libstdc++-v3/src/Makefile.am gcc-4.4.0/libstdc++-v3/src/Makefile.am +--- gcc-4.4.0.orig/libstdc++-v3/src/Makefile.am 2009-04-10 01:23:07.000000000 +0200 ++++ gcc-4.4.0/libstdc++-v3/src/Makefile.am 2009-05-27 21:38:34.000000000 +0200 +@@ -351,6 +351,13 @@ + $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@ + + ++install-exec-local: ++ pic_objs=`sed -n "s:'::g;s:^pic_object=::p" *.lo | grep -v '^none$$'`; \ ++ if [ x"$$pic_objs" != x ]; then \ ++ $(AR) cru libstdc++_pic.a $$pic_objs $(top_builddir)/libsupc++/*.o || exit 1; \ ++ $(INSTALL_DATA) libstdc++_pic.a $(DESTDIR)$(toolexeclibdir) || exit 1; \ ++ fi ++ + # Added bits to build debug library. + if GLIBCXX_BUILD_DEBUG + all-local: build_debug +diff -durN gcc-4.4.0.orig/libstdc++-v3/src/Makefile.in gcc-4.4.0/libstdc++-v3/src/Makefile.in +--- gcc-4.4.0.orig/libstdc++-v3/src/Makefile.in 2009-01-17 03:03:25.000000000 +0100 ++++ gcc-4.4.0/libstdc++-v3/src/Makefile.in 2009-05-27 21:38:34.000000000 +0200 +@@ -726,7 +726,7 @@ + + install-data-am: install-data-local + +-install-exec-am: install-toolexeclibLTLIBRARIES ++install-exec-am: install-toolexeclibLTLIBRARIES install-exec-local + + install-info: install-info-am + +@@ -765,7 +765,7 @@ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-info-am \ +- uninstall-toolexeclibLTLIBRARIES ++ uninstall-toolexeclibLTLIBRARIES install-exec-local + + + # Symbol versioning for shared libraries. +@@ -942,6 +942,14 @@ + install_debug: + (cd ${debugdir} && $(MAKE) \ + toolexeclibdir=$(glibcxx_toolexeclibdir)/debug install) ++ ++install-exec-local: ++ pic_objs=`sed -n "s:'::g;s:^pic_object=::p" *.lo | grep -v '^none$$'`; \ ++ if [ x"$$pic_objs" != x ]; then \ ++ $(AR) cru libstdc++_pic.a $$pic_objs $(top_builddir)/libsupc++/*.o || exit 1; \ ++ $(INSTALL_DATA) libstdc++_pic.a $(DESTDIR)$(toolexeclibdir) || exit 1; \ ++ fi ++ + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. + .NOEXPORT: diff --git a/patches/gcc/4.4.2/250-ia64-noteGNUstack.patch b/patches/gcc/4.4.2/250-ia64-noteGNUstack.patch new file mode 100644 index 00000000..9b80e6c7 --- /dev/null +++ b/patches/gcc/4.4.2/250-ia64-noteGNUstack.patch @@ -0,0 +1,79 @@ +diff -durN gcc-4.4.0.orig/gcc/config/ia64/crtbegin.asm gcc-4.4.0/gcc/config/ia64/crtbegin.asm +--- gcc-4.4.0.orig/gcc/config/ia64/crtbegin.asm 2009-04-10 01:23:07.000000000 +0200 ++++ gcc-4.4.0/gcc/config/ia64/crtbegin.asm 2009-05-27 21:38:37.000000000 +0200 +@@ -252,3 +252,7 @@ + .weak __cxa_finalize + #endif + .weak _Jv_RegisterClasses ++ ++#ifdef __linux__ ++.section .note.GNU-stack; .previous ++#endif +diff -durN gcc-4.4.0.orig/gcc/config/ia64/crtend.asm gcc-4.4.0/gcc/config/ia64/crtend.asm +--- gcc-4.4.0.orig/gcc/config/ia64/crtend.asm 2009-04-10 01:23:07.000000000 +0200 ++++ gcc-4.4.0/gcc/config/ia64/crtend.asm 2009-05-27 21:38:37.000000000 +0200 +@@ -119,3 +119,7 @@ + + br.ret.sptk.many rp + .endp __do_global_ctors_aux ++ ++#ifdef __linux__ ++.section .note.GNU-stack; .previous ++#endif +diff -durN gcc-4.4.0.orig/gcc/config/ia64/crti.asm gcc-4.4.0/gcc/config/ia64/crti.asm +--- gcc-4.4.0.orig/gcc/config/ia64/crti.asm 2009-04-10 01:23:07.000000000 +0200 ++++ gcc-4.4.0/gcc/config/ia64/crti.asm 2009-05-27 21:38:37.000000000 +0200 +@@ -51,3 +51,7 @@ + .body + + # end of crti.asm ++ ++#ifdef __linux__ ++.section .note.GNU-stack; .previous ++#endif +diff -durN gcc-4.4.0.orig/gcc/config/ia64/crtn.asm gcc-4.4.0/gcc/config/ia64/crtn.asm +--- gcc-4.4.0.orig/gcc/config/ia64/crtn.asm 2009-04-10 01:23:07.000000000 +0200 ++++ gcc-4.4.0/gcc/config/ia64/crtn.asm 2009-05-27 21:38:37.000000000 +0200 +@@ -41,3 +41,7 @@ + br.ret.sptk.many b0 + + # end of crtn.asm ++ ++#ifdef __linux__ ++.section .note.GNU-stack; .previous ++#endif +diff -durN gcc-4.4.0.orig/gcc/config/ia64/lib1funcs.asm gcc-4.4.0/gcc/config/ia64/lib1funcs.asm +--- gcc-4.4.0.orig/gcc/config/ia64/lib1funcs.asm 2009-04-10 01:23:07.000000000 +0200 ++++ gcc-4.4.0/gcc/config/ia64/lib1funcs.asm 2009-05-27 21:38:37.000000000 +0200 +@@ -793,3 +793,7 @@ + .endp __floattitf + #endif + #endif ++ ++#ifdef __linux__ ++.section .note.GNU-stack; .previous ++#endif +diff -durN gcc-4.4.0.orig/gcc/config/ia64/linux.h gcc-4.4.0/gcc/config/ia64/linux.h +--- gcc-4.4.0.orig/gcc/config/ia64/linux.h 2009-02-12 17:30:53.000000000 +0100 ++++ gcc-4.4.0/gcc/config/ia64/linux.h 2009-05-27 21:38:37.000000000 +0200 +@@ -5,6 +5,8 @@ + + #define TARGET_VERSION fprintf (stderr, " (IA-64) Linux"); + ++#define TARGET_ASM_FILE_END file_end_indicate_exec_stack ++ + /* This is for -profile to use -lc_p instead of -lc. */ + #undef CC1_SPEC + #define CC1_SPEC "%{profile:-p} %{G*}" +diff -durN gcc-4.4.0.orig/gcc/config/rs6000/ppc-asm.h gcc-4.4.0/gcc/config/rs6000/ppc-asm.h +--- gcc-4.4.0.orig/gcc/config/rs6000/ppc-asm.h 2008-10-13 17:44:26.000000000 +0200 ++++ gcc-4.4.0/gcc/config/rs6000/ppc-asm.h 2009-05-27 21:38:37.000000000 +0200 +@@ -172,7 +172,7 @@ + .size FUNC_NAME(name),GLUE(.L,name)-FUNC_NAME(name) + #endif + +-#if defined __linux__ && !defined __powerpc64__ ++#if defined __linux__ + .section .note.GNU-stack + .previous + #endif diff --git a/patches/gcc/4.4.2/260-sh-libgcc-stacks.patch b/patches/gcc/4.4.2/260-sh-libgcc-stacks.patch new file mode 100644 index 00000000..62af2c94 --- /dev/null +++ b/patches/gcc/4.4.2/260-sh-libgcc-stacks.patch @@ -0,0 +1,25 @@ +diff -durN gcc-4.4.0.orig/gcc/config/sh/lib1funcs.asm gcc-4.4.0/gcc/config/sh/lib1funcs.asm +--- gcc-4.4.0.orig/gcc/config/sh/lib1funcs.asm 2009-04-10 01:23:07.000000000 +0200 ++++ gcc-4.4.0/gcc/config/sh/lib1funcs.asm 2009-05-27 21:38:39.000000000 +0200 +@@ -30,6 +30,11 @@ + !! recoded in assembly by Toshiyasu Morita + !! tm@netcom.com + ++#if defined(__ELF__) && defined(__linux__) ++.section .note.GNU-stack,"",%progbits ++.previous ++#endif ++ + /* SH2 optimizations for ___ashrsi3, ___ashlsi3, ___lshrsi3 and + ELF local label prefixes by J"orn Rennecke + amylaar@cygnus.com */ +diff -durN gcc-4.4.0.orig/gcc/config/sh/linux-atomic.asm gcc-4.4.0/gcc/config/sh/linux-atomic.asm +--- gcc-4.4.0.orig/gcc/config/sh/linux-atomic.asm 2009-04-10 01:23:07.000000000 +0200 ++++ gcc-4.4.0/gcc/config/sh/linux-atomic.asm 2009-05-27 21:38:39.000000000 +0200 +@@ -136,3 +136,6 @@ + ATOMIC_FETCH_AND_COMBOP(nand,and,not,4,l,mov) + + #endif /* ! __SH5__ */ ++ ++.section .note.GNU-stack,"",%progbits ++.previous diff --git a/patches/gcc/4.4.2/270-sh-pr24836.patch b/patches/gcc/4.4.2/270-sh-pr24836.patch new file mode 100644 index 00000000..3c745ab8 --- /dev/null +++ b/patches/gcc/4.4.2/270-sh-pr24836.patch @@ -0,0 +1,24 @@ +diff -durN gcc-4.4.0.orig/gcc/configure gcc-4.4.0/gcc/configure +--- gcc-4.4.0.orig/gcc/configure 2009-05-27 21:38:08.000000000 +0200 ++++ gcc-4.4.0/gcc/configure 2009-05-27 21:38:42.000000000 +0200 +@@ -22205,7 +22205,7 @@ + tls_first_minor=14 + tls_as_opt="-m64 -Aesame --fatal-warnings" + ;; +- sh-*-* | sh[34]-*-*) ++ sh-*-* | sh[34]*-*-*) + conftest_s=' + .section ".tdata","awT",@progbits + foo: .long 25 +diff -durN gcc-4.4.0.orig/gcc/configure.ac gcc-4.4.0/gcc/configure.ac +--- gcc-4.4.0.orig/gcc/configure.ac 2009-05-27 21:38:08.000000000 +0200 ++++ gcc-4.4.0/gcc/configure.ac 2009-05-27 21:38:42.000000000 +0200 +@@ -2673,7 +2673,7 @@ + tls_first_minor=14 + tls_as_opt="-m64 -Aesame --fatal-warnings" + ;; +- sh-*-* | sh[34]-*-*) ++ sh-*-* | sh[34]*-*-*) + conftest_s=' + .section ".tdata","awT",@progbits + foo: .long 25 diff --git a/patches/gcc/4.4.2/280-freebsd.patch b/patches/gcc/4.4.2/280-freebsd.patch new file mode 100644 index 00000000..39d9d0b6 --- /dev/null +++ b/patches/gcc/4.4.2/280-freebsd.patch @@ -0,0 +1,94 @@ +diff -durN gcc-4.4.0.orig/gcc/config/freebsd-spec.h gcc-4.4.0/gcc/config/freebsd-spec.h +--- gcc-4.4.0.orig/gcc/config/freebsd-spec.h 2009-04-10 01:23:07.000000000 +0200 ++++ gcc-4.4.0/gcc/config/freebsd-spec.h 2009-05-27 21:38:45.000000000 +0200 +@@ -61,6 +61,8 @@ + builtin_assert ("system=unix"); \ + builtin_assert ("system=bsd"); \ + builtin_assert ("system=FreeBSD"); \ ++ if(!(flag_iso && (c_dialect_cxx () ? cxx_dialect == cxx98 : !flag_isoc99))) \ ++ builtin_define("_LONGLONG"); \ + FBSD_TARGET_CPU_CPP_BUILTINS(); \ + } \ + while (0) +diff -durN gcc-4.4.0.orig/gcc/config/t-freebsd-eh gcc-4.4.0/gcc/config/t-freebsd-eh +--- gcc-4.4.0.orig/gcc/config/t-freebsd-eh 1970-01-01 01:00:00.000000000 +0100 ++++ gcc-4.4.0/gcc/config/t-freebsd-eh 2009-05-27 21:38:45.000000000 +0200 +@@ -0,0 +1,4 @@ ++# Use unwind-dw2-fde-glibc ++LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde-glibc.c \ ++ $(srcdir)/unwind-sjlj.c $(srcdir)/gthr-gnat.c $(srcdir)/unwind-c.c ++LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h unwind-dw2-fde.c +diff -durN gcc-4.4.0.orig/gcc/config.gcc gcc-4.4.0/gcc/config.gcc +--- gcc-4.4.0.orig/gcc/config.gcc 2009-05-27 21:38:34.000000000 +0200 ++++ gcc-4.4.0/gcc/config.gcc 2009-05-27 21:38:45.000000000 +0200 +@@ -456,7 +456,7 @@ + # pleases around the provided core setting. + gas=yes + gnu_ld=yes +- extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" ++ extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o" + fbsd_major=`echo ${target} | sed -e 's/.*freebsd//g' | sed -e 's/\..*//g'` + tm_defines="${tm_defines} FBSD_MAJOR=${fbsd_major}" + tmake_file="t-slibgcc-elf-ver t-freebsd" +@@ -1042,6 +1042,10 @@ + ;; + i[34567]86-*-freebsd*) + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/freebsd.h" ++ fbsd_major=`echo ${target} | sed -e 's/.*freebsd//g' | sed -e 's/\..*//g'` ++ if test ${fbsd_major} -ge 7; then ++ tmake_file="${tmake_file} t-freebsd-eh" ++ fi + ;; + x86_64-*-freebsd*) + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/x86-64.h i386/freebsd.h i386/freebsd64.h" +diff -durN gcc-4.4.0.orig/gcc/crtstuff.c gcc-4.4.0/gcc/crtstuff.c +--- gcc-4.4.0.orig/gcc/crtstuff.c 2009-04-10 01:23:07.000000000 +0200 ++++ gcc-4.4.0/gcc/crtstuff.c 2009-05-27 21:38:45.000000000 +0200 +@@ -85,13 +85,15 @@ + && !defined(OBJECT_FORMAT_FLAT) \ + && defined(HAVE_LD_EH_FRAME_HDR) \ + && !defined(inhibit_libc) && !defined(CRTSTUFFT_O) \ +- && defined(__GLIBC__) && __GLIBC__ >= 2 ++ && ((defined(__GLIBC__) && __GLIBC__ >= 2) \ ++ || (defined(__FreeBSD_version) && __FreeBSD_version >= 700022)) + #include + /* uClibc pretends to be glibc 2.2 and DT_CONFIG is defined in its link.h. + But it doesn't use PT_GNU_EH_FRAME ELF segment currently. */ + # if !defined(__UCLIBC__) \ +- && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) \ +- || (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2 && defined(DT_CONFIG))) ++ || (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) \ ++ || (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2 && defined(DT_CONFIG))) \ ++ || (__FreeBSD_version >= 700022) + # define USE_PT_GNU_EH_FRAME + # endif + #endif +diff -durN gcc-4.4.0.orig/gcc/unwind-dw2-fde-glibc.c gcc-4.4.0/gcc/unwind-dw2-fde-glibc.c +--- gcc-4.4.0.orig/gcc/unwind-dw2-fde-glibc.c 2009-04-10 01:23:07.000000000 +0200 ++++ gcc-4.4.0/gcc/unwind-dw2-fde-glibc.c 2009-05-27 21:38:45.000000000 +0200 +@@ -46,8 +46,9 @@ + #include "gthr.h" + + #if !defined(inhibit_libc) && defined(HAVE_LD_EH_FRAME_HDR) \ +- && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) \ +- || (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2 && defined(DT_CONFIG))) ++ && ((__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) \ ++ || (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2 && defined(DT_CONFIG))) \ ++ || (__FreeBSD_version >= 700022 )) + + #ifndef __RELOC_POINTER + # define __RELOC_POINTER(ptr, base) ((ptr) + (base)) +@@ -63,6 +64,13 @@ + #define PT_GNU_EH_FRAME (PT_LOOS + 0x474e550) + #endif + ++/* Support FreeBSD */ ++#ifndef ElfW ++# ifdef __ElfN ++# define ElfW __ElfN ++# endif ++#endif ++ + struct unw_eh_callback_data + { + _Unwind_Ptr pc; diff --git a/patches/gcc/4.4.2/290-freebsd.patch b/patches/gcc/4.4.2/290-freebsd.patch new file mode 100644 index 00000000..ad1564b5 --- /dev/null +++ b/patches/gcc/4.4.2/290-freebsd.patch @@ -0,0 +1,64 @@ +diff -durN gcc-4.4.0.orig/gcc/config/freebsd-spec.h gcc-4.4.0/gcc/config/freebsd-spec.h +--- gcc-4.4.0.orig/gcc/config/freebsd-spec.h 2009-05-27 21:38:47.000000000 +0200 ++++ gcc-4.4.0/gcc/config/freebsd-spec.h 2009-05-27 21:38:47.000000000 +0200 +@@ -86,9 +86,10 @@ + #define FBSD_STARTFILE_SPEC \ + "%{!shared: \ + %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} \ +- %{!p:%{profile:gcrt1.o%s} \ +- %{!profile:crt1.o%s}}}} \ +- crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}" ++ %{!p:%{profile:gcrt1.o%s} \ ++ %{!profile:crt1.o%s}}}} \ ++ crti.o%s \ ++ %{static:crtbeginT.o%s;shared:crtbeginS.o%s;:crtbegin.o%s}" + + /* Provide a ENDFILE_SPEC appropriate for FreeBSD. Here we tack on + the magical crtend.o file (see crtstuff.c) which provides part of +@@ -126,7 +127,8 @@ + %{pg: -lc_p} \ + }" + #else +-#if FBSD_MAJOR < 5 ++#include ++#if __FreeBSD_version < 500016 + #define FBSD_LIB_SPEC " \ + %{!shared: \ + %{!pg: \ +@@ -136,17 +138,34 @@ + %{!pthread:-lc_p} \ + %{pthread:-lc_r_p}} \ + }" +-#else ++#elif __FreeBSD_version < 700022 + #define FBSD_LIB_SPEC " \ + %{!shared: \ + %{!pg: %{pthread:-lpthread} -lc} \ + %{pg: %{pthread:-lpthread_p} -lc_p} \ + }" ++#else ++#define FBSD_LIB_SPEC " \ ++ %{!shared: \ ++ %{!pg: %{pthread:-lpthread} -lc} \ ++ %{pg: %{pthread:-lpthread_p} -lc_p}} \ ++ %{shared: \ ++ %{pthread:-lpthread} -lc} \ ++ " + #endif + #endif + +-#if FBSD_MAJOR < 6 ++#if FBSD_MAJOR < 5 + #define FBSD_DYNAMIC_LINKER "/usr/libexec/ld-elf.so.1" + #else + #define FBSD_DYNAMIC_LINKER "/libexec/ld-elf.so.1" + #endif ++ ++#if defined(HAVE_LD_EH_FRAME_HDR) ++#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} " ++#endif ++ ++/* Use --as-needed -lgcc_s for eh support. */ ++#ifdef HAVE_LD_AS_NEEDED ++#define USE_LD_AS_NEEDED 1 ++#endif diff --git a/patches/gcc/4.4.2/300-uclibc-conf.patch b/patches/gcc/4.4.2/300-uclibc-conf.patch new file mode 100644 index 00000000..e3f3b913 --- /dev/null +++ b/patches/gcc/4.4.2/300-uclibc-conf.patch @@ -0,0 +1,35 @@ +diff -durN gcc-4.4.0.orig/contrib/regression/objs-gcc.sh gcc-4.4.0/contrib/regression/objs-gcc.sh +--- gcc-4.4.0.orig/contrib/regression/objs-gcc.sh 2009-04-10 01:23:07.000000000 +0200 ++++ gcc-4.4.0/contrib/regression/objs-gcc.sh 2009-05-27 21:38:53.000000000 +0200 +@@ -106,6 +106,10 @@ + then + make all-gdb all-dejagnu all-ld || exit 1 + make install-gdb install-dejagnu install-ld || exit 1 ++elif [ $H_REAL_TARGET = $H_REAL_HOST -a $H_REAL_TARGET = i686-pc-linux-uclibc ] ++ then ++ make all-gdb all-dejagnu all-ld || exit 1 ++ make install-gdb install-dejagnu install-ld || exit 1 + elif [ $H_REAL_TARGET = $H_REAL_HOST ] ; then + make bootstrap || exit 1 + make install || exit 1 +diff -durN gcc-4.4.0.orig/libjava/classpath/ltconfig gcc-4.4.0/libjava/classpath/ltconfig +--- gcc-4.4.0.orig/libjava/classpath/ltconfig 2007-06-04 01:18:43.000000000 +0200 ++++ gcc-4.4.0/libjava/classpath/ltconfig 2009-05-27 21:38:53.000000000 +0200 +@@ -603,7 +603,7 @@ + + # Transform linux* to *-*-linux-gnu*, to support old configure scripts. + case $host_os in +-linux-gnu*) ;; ++linux-gnu*|linux-uclibc*) ;; + linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` + esac + +@@ -1251,7 +1251,7 @@ + ;; + + # This must be Linux ELF. +-linux-gnu*) ++linux*) + version_type=linux + need_lib_prefix=no + need_version=no diff --git a/patches/gcc/4.4.2/310-missing-execinfo_h.patch b/patches/gcc/4.4.2/310-missing-execinfo_h.patch new file mode 100644 index 00000000..009335e6 --- /dev/null +++ b/patches/gcc/4.4.2/310-missing-execinfo_h.patch @@ -0,0 +1,12 @@ +diff -durN gcc-4.4.0.orig/boehm-gc/include/gc.h gcc-4.4.0/boehm-gc/include/gc.h +--- gcc-4.4.0.orig/boehm-gc/include/gc.h 2007-04-23 23:10:09.000000000 +0200 ++++ gcc-4.4.0/boehm-gc/include/gc.h 2009-05-27 21:38:55.000000000 +0200 +@@ -503,7 +503,7 @@ + #if defined(__linux__) || defined(__GLIBC__) + # include + # if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 || __GLIBC__ > 2) \ +- && !defined(__ia64__) ++ && !defined(__ia64__) && !defined(__UCLIBC__) + # ifndef GC_HAVE_BUILTIN_BACKTRACE + # define GC_HAVE_BUILTIN_BACKTRACE + # endif diff --git a/patches/gcc/4.4.2/320-c99-snprintf.patch b/patches/gcc/4.4.2/320-c99-snprintf.patch new file mode 100644 index 00000000..4928f4bb --- /dev/null +++ b/patches/gcc/4.4.2/320-c99-snprintf.patch @@ -0,0 +1,12 @@ +diff -durN gcc-4.4.0.orig/libstdc++-v3/include/c_global/cstdio gcc-4.4.0/libstdc++-v3/include/c_global/cstdio +--- gcc-4.4.0.orig/libstdc++-v3/include/c_global/cstdio 2009-04-10 01:23:07.000000000 +0200 ++++ gcc-4.4.0/libstdc++-v3/include/c_global/cstdio 2009-05-27 21:38:58.000000000 +0200 +@@ -139,7 +139,7 @@ + + _GLIBCXX_END_NAMESPACE + +-#if _GLIBCXX_USE_C99 ++#if _GLIBCXX_USE_C99 || defined __UCLIBC__ + + #undef snprintf + #undef vfscanf diff --git a/patches/gcc/4.4.2/330-libmudflap-susv3-legacy.patch b/patches/gcc/4.4.2/330-libmudflap-susv3-legacy.patch new file mode 100644 index 00000000..f3a4e325 --- /dev/null +++ b/patches/gcc/4.4.2/330-libmudflap-susv3-legacy.patch @@ -0,0 +1,48 @@ +diff -durN gcc-4.4.0.orig/libmudflap/mf-hooks2.c gcc-4.4.0/libmudflap/mf-hooks2.c +--- gcc-4.4.0.orig/libmudflap/mf-hooks2.c 2009-04-10 01:23:07.000000000 +0200 ++++ gcc-4.4.0/libmudflap/mf-hooks2.c 2009-05-27 21:39:00.000000000 +0200 +@@ -421,7 +421,7 @@ + { + TRACE ("%s\n", __PRETTY_FUNCTION__); + MF_VALIDATE_EXTENT(s, n, __MF_CHECK_WRITE, "bzero region"); +- bzero (s, n); ++ memset (s, 0, n); + } + + +@@ -431,7 +431,7 @@ + TRACE ("%s\n", __PRETTY_FUNCTION__); + MF_VALIDATE_EXTENT(src, n, __MF_CHECK_READ, "bcopy src"); + MF_VALIDATE_EXTENT(dest, n, __MF_CHECK_WRITE, "bcopy dest"); +- bcopy (src, dest, n); ++ memmove (dest, src, n); + } + + +@@ -441,7 +441,7 @@ + TRACE ("%s\n", __PRETTY_FUNCTION__); + MF_VALIDATE_EXTENT(s1, n, __MF_CHECK_READ, "bcmp 1st arg"); + MF_VALIDATE_EXTENT(s2, n, __MF_CHECK_READ, "bcmp 2nd arg"); +- return bcmp (s1, s2, n); ++ return n == 0 ? 0 : memcmp (s1, s2, n); + } + + +@@ -450,7 +450,7 @@ + size_t n = strlen (s); + TRACE ("%s\n", __PRETTY_FUNCTION__); + MF_VALIDATE_EXTENT(s, CLAMPADD(n, 1), __MF_CHECK_READ, "index region"); +- return index (s, c); ++ return strchr (s, c); + } + + +@@ -459,7 +459,7 @@ + size_t n = strlen (s); + TRACE ("%s\n", __PRETTY_FUNCTION__); + MF_VALIDATE_EXTENT(s, CLAMPADD(n, 1), __MF_CHECK_READ, "rindex region"); +- return rindex (s, c); ++ return strrchr (s, c); + } + + /* XXX: stpcpy, memccpy */ diff --git a/patches/gcc/4.4.2/340-ecjx-host-cc.patch b/patches/gcc/4.4.2/340-ecjx-host-cc.patch new file mode 100644 index 00000000..eaf8ed44 --- /dev/null +++ b/patches/gcc/4.4.2/340-ecjx-host-cc.patch @@ -0,0 +1,13 @@ +diff -ur gcc-4.4.1-orig/libjava/Makefile.in gcc-4.4.1/libjava/Makefile.in +--- gcc-4.4.1-orig/libjava/Makefile.in 2009-08-04 04:12:27.000000000 -0700 ++++ gcc-4.4.1/libjava/Makefile.in 2009-09-23 22:03:15.750951483 -0700 +@@ -8874,6 +8874,9 @@ + ecjx$(EXEEXT): $(ecjx_OBJECTS) $(ecjx_DEPENDENCIES) + @rm -f ecjx$(EXEEXT) + $(ecjx_LINK) $(ecjx_LDFLAGS) $(ecjx_OBJECTS) $(ecjx_LDADD) $(LIBS) ++ecjx.$(OBJEXT): $(ecjx_SOURCES) ++ @rm -f ecjx.$(OBJEXT) ++ $(CC_FOR_BUILD) $(BUILD_CFLAGS) -c -o $@ $< + gappletviewer$(EXEEXT): $(gappletviewer_OBJECTS) $(gappletviewer_DEPENDENCIES) + @rm -f gappletviewer$(EXEEXT) + $(gappletviewer_LINK) $(gappletviewer_LDFLAGS) $(gappletviewer_OBJECTS) $(gappletviewer_LDADD) $(LIBS) -- cgit v1.2.3 From 17d149e8b24ae4fd651de06438373779224692f1 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Wed, 28 Oct 2009 18:34:49 +0100 Subject: debug/gdb: add latest version 7.0 --- config/debug/gdb.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'config') diff --git a/config/debug/gdb.in b/config/debug/gdb.in index 4914e908..1a4bc602 100644 --- a/config/debug/gdb.in +++ b/config/debug/gdb.in @@ -99,6 +99,11 @@ choice # Don't remove next line # CT_INSERT_VERSION_BELOW +config GDB_V_7_0 + bool + prompt "7.0 (EXPERIMENTAL)" + depends on EXPERIMENTAL + config GDB_V_6_8 bool prompt "6.8" @@ -115,6 +120,7 @@ config GDB_VERSION string # Don't remove next line # CT_INSERT_VERSION_STRING_BELOW + default "7.0" if GDB_V_7_0 default "6.8" if GDB_V_6_8 default "snapshot" if GDB_V_snapshot -- cgit v1.2.3 From 4ae5060ec81b4d4673a4091acd00e16edf16007e Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Wed, 28 Oct 2009 19:00:34 +0100 Subject: debug/strace: add latest version, unmarkprevious EXPERIMENTAL Also propagate the patchset from 4.5.18 to 4.5.19. --- config/debug/strace.in | 9 ++- patches/strace/4.5.19/100-autoreconf.patch | 77 ++++++++++++++++++++++ .../strace/4.5.19/110-fix-arm-bad-syscall.patch | 19 ++++++ .../120-fix-disabled-largefile-syscalls.patch | 22 +++++++ patches/strace/4.5.19/130-statfs64-check.patch | 53 +++++++++++++++ patches/strace/4.5.19/140-undef-CTL_PROC.patch | 13 ++++ patches/strace/4.5.19/150-undef-syscall.patch | 42 ++++++++++++ 7 files changed, 233 insertions(+), 2 deletions(-) create mode 100644 patches/strace/4.5.19/100-autoreconf.patch create mode 100644 patches/strace/4.5.19/110-fix-arm-bad-syscall.patch create mode 100644 patches/strace/4.5.19/120-fix-disabled-largefile-syscalls.patch create mode 100644 patches/strace/4.5.19/130-statfs64-check.patch create mode 100644 patches/strace/4.5.19/140-undef-CTL_PROC.patch create mode 100644 patches/strace/4.5.19/150-undef-syscall.patch (limited to 'config') diff --git a/config/debug/strace.in b/config/debug/strace.in index 8f6ce0de..4fc58462 100644 --- a/config/debug/strace.in +++ b/config/debug/strace.in @@ -8,11 +8,15 @@ choice # Don't remove next line # CT_INSERT_VERSION_BELOW -config STRACE_V_4_5_18 +config STRACE_V_4_5_19 bool - prompt "4.5.18 (EXPERIMENTAL)" + prompt "4.5.19 (EXPERIMENTAL)" depends on EXPERIMENTAL +config STRACE_V_4_5_18 + bool + prompt "4.5.18" + config STRACE_V_4_5_17 bool prompt "4.5.17" @@ -31,6 +35,7 @@ config STRACE_VERSION string # Don't remove next line # CT_INSERT_VERSION_STRING_BELOW + default "4.5.19" if STRACE_V_4_5_19 default "4.5.18" if STRACE_V_4_5_18 default "4.5.17" if STRACE_V_4_5_17 default "4.5.16" if STRACE_V_4_5_16 diff --git a/patches/strace/4.5.19/100-autoreconf.patch b/patches/strace/4.5.19/100-autoreconf.patch new file mode 100644 index 00000000..e7972db0 --- /dev/null +++ b/patches/strace/4.5.19/100-autoreconf.patch @@ -0,0 +1,77 @@ +diff -durN strace-4.5.19.orig/configure strace-4.5.19/configure +--- strace-4.5.19.orig/configure 2009-10-21 19:41:11.000000000 +0200 ++++ strace-4.5.19/configure 2009-10-28 18:47:18.000000000 +0100 +@@ -5773,6 +5773,73 @@ + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + ++echo "$as_me:$LINENO: checking for statfs64 in sys/(statfs|vfs).h" >&5 ++echo $ECHO_N "checking for statfs64 in sys/(statfs|vfs).h... $ECHO_C" >&6 ++if test "${ac_cv_type_statfs64+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#ifdef LINUX ++#include ++#include ++#else ++#include ++#endif ++int ++main () ++{ ++struct statfs64 st; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ++ (eval $ac_compile) 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && ++ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ++ (eval $ac_try) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; } && ++ { ac_try='test -s conftest.$ac_objext' ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ++ (eval $ac_try) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_cv_type_statfs64=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ac_cv_type_statfs64=no ++fi ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++echo "$as_me:$LINENO: result: $ac_cv_type_statfs64" >&5 ++echo "${ECHO_T}$ac_cv_type_statfs64" >&6 ++if test "$ac_cv_type_statfs64" = yes ++then ++ ++cat >>confdefs.h <<\_ACEOF ++#define HAVE_STATFS64 1 ++_ACEOF ++ ++fi ++ + + int + main () diff --git a/patches/strace/4.5.19/110-fix-arm-bad-syscall.patch b/patches/strace/4.5.19/110-fix-arm-bad-syscall.patch new file mode 100644 index 00000000..97a60bac --- /dev/null +++ b/patches/strace/4.5.19/110-fix-arm-bad-syscall.patch @@ -0,0 +1,19 @@ +diff -durN strace-4.5.19.orig/syscall.c strace-4.5.19/syscall.c +--- strace-4.5.19.orig/syscall.c 2009-10-12 21:54:21.000000000 +0200 ++++ strace-4.5.19/syscall.c 2009-10-28 18:47:18.000000000 +0100 +@@ -1022,6 +1022,15 @@ + /* + * Note: we only deal with only 32-bit CPUs here. + */ ++ ++ if (!(tcp->flags & TCB_INSYSCALL) && ++ (tcp->flags & TCB_WAITEXECVE)) { ++ /* caught a fake syscall from the execve's exit */ ++ tcp->flags &= ~TCB_WAITEXECVE; ++ return 0; ++ } ++ ++ + if (regs.ARM_cpsr & 0x20) { + /* + * Get the Thumb-mode system call number diff --git a/patches/strace/4.5.19/120-fix-disabled-largefile-syscalls.patch b/patches/strace/4.5.19/120-fix-disabled-largefile-syscalls.patch new file mode 100644 index 00000000..a555fc24 --- /dev/null +++ b/patches/strace/4.5.19/120-fix-disabled-largefile-syscalls.patch @@ -0,0 +1,22 @@ +diff -durN strace-4.5.19.orig/syscall.c strace-4.5.19/syscall.c +--- strace-4.5.19.orig/syscall.c 2009-10-28 18:47:18.000000000 +0100 ++++ strace-4.5.19/syscall.c 2009-10-28 18:47:18.000000000 +0100 +@@ -110,6 +110,18 @@ + #define TP TRACE_PROCESS + #define TS TRACE_SIGNAL + ++#ifndef HAVE_STATFS64 ++/* ++ * Ugly hacks for systems that do not have LFS ++ */ ++ ++#define sys_truncate64 sys_truncate ++#define sys_ftruncate64 sys_ftruncate ++#define sys_getdents64 sys_getdents ++#define sys_statfs64 sys_statfs ++#define sys_fstatfs64 sys_fstatfs ++#endif ++ + static const struct sysent sysent0[] = { + #include "syscallent.h" + }; diff --git a/patches/strace/4.5.19/130-statfs64-check.patch b/patches/strace/4.5.19/130-statfs64-check.patch new file mode 100644 index 00000000..0959bddb --- /dev/null +++ b/patches/strace/4.5.19/130-statfs64-check.patch @@ -0,0 +1,53 @@ +diff -durN strace-4.5.19.orig/acinclude.m4 strace-4.5.19/acinclude.m4 +--- strace-4.5.19.orig/acinclude.m4 2004-04-14 04:45:53.000000000 +0200 ++++ strace-4.5.19/acinclude.m4 2009-10-28 18:47:18.000000000 +0100 +@@ -210,6 +210,26 @@ + fi + ]) + ++dnl ### A macro to determine whether statfs64 is defined. ++AC_DEFUN([AC_STATFS64], ++[AC_MSG_CHECKING(for statfs64 in sys/(statfs|vfs).h) ++AC_CACHE_VAL(ac_cv_type_statfs64, ++[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifdef LINUX ++#include ++#include ++#else ++#include ++#endif]], [[struct statfs64 st;]])],[ac_cv_type_statfs64=yes],[ac_cv_type_statfs64=no])]) ++AC_MSG_RESULT($ac_cv_type_statfs64) ++if test "$ac_cv_type_statfs64" = yes ++then ++ AC_DEFINE([HAVE_STATFS64], 1, ++[Define if statfs64 is available in sys/statfs.h or sys/vfs.h.]) ++fi ++]) ++ ++ ++ + dnl ### A macro to determine if off_t is a long long + AC_DEFUN([AC_OFF_T_IS_LONG_LONG], + [AC_MSG_CHECKING(for long long off_t) +diff -durN strace-4.5.19.orig/configure.ac strace-4.5.19/configure.ac +--- strace-4.5.19.orig/configure.ac 2009-10-12 21:54:43.000000000 +0200 ++++ strace-4.5.19/configure.ac 2009-10-28 18:47:18.000000000 +0100 +@@ -187,6 +187,7 @@ + struct stat.st_level, + struct stat.st_rdev]) + AC_STAT64 ++AC_STATFS64 + + AC_TYPE_SIGNAL + AC_TYPE_UID_T +diff -durN strace-4.5.19.orig/file.c strace-4.5.19/file.c +--- strace-4.5.19.orig/file.c 2009-10-21 15:44:04.000000000 +0200 ++++ strace-4.5.19/file.c 2009-10-28 18:47:18.000000000 +0100 +@@ -1688,7 +1688,7 @@ + return 0; + } + +-#ifdef LINUX ++#ifdef HAVE_STATFS64 + static void + printstatfs64(struct tcb *tcp, long addr) + { diff --git a/patches/strace/4.5.19/140-undef-CTL_PROC.patch b/patches/strace/4.5.19/140-undef-CTL_PROC.patch new file mode 100644 index 00000000..8284335d --- /dev/null +++ b/patches/strace/4.5.19/140-undef-CTL_PROC.patch @@ -0,0 +1,13 @@ +diff -durN strace-4.5.19.orig/system.c strace-4.5.19/system.c +--- strace-4.5.19.orig/system.c 2009-06-01 11:59:11.000000000 +0200 ++++ strace-4.5.19/system.c 2009-10-28 18:47:18.000000000 +0100 +@@ -1654,7 +1654,9 @@ + { CTL_KERN, "CTL_KERN" }, + { CTL_VM, "CTL_VM" }, + { CTL_NET, "CTL_NET" }, ++#ifdef CTL_PROC + { CTL_PROC, "CTL_PROC" }, ++#endif + { CTL_FS, "CTL_FS" }, + { CTL_DEBUG, "CTL_DEBUG" }, + { CTL_DEV, "CTL_DEV" }, diff --git a/patches/strace/4.5.19/150-undef-syscall.patch b/patches/strace/4.5.19/150-undef-syscall.patch new file mode 100644 index 00000000..7d65e1d6 --- /dev/null +++ b/patches/strace/4.5.19/150-undef-syscall.patch @@ -0,0 +1,42 @@ +diff -durN strace-4.5.19.orig/linux/syscallent.h strace-4.5.19/linux/syscallent.h +--- strace-4.5.19.orig/linux/syscallent.h 2009-09-01 21:53:29.000000000 +0200 ++++ strace-4.5.19/linux/syscallent.h 2009-10-28 18:47:18.000000000 +0100 +@@ -130,7 +130,11 @@ + { 2, TF, sys_statfs, "statfs" }, /* 99 */ + { 2, TD, sys_fstatfs, "fstatfs" }, /* 100 */ + { 3, 0, sys_ioperm, "ioperm" }, /* 101 */ +- { 2, TD, sys_socketcall, "socketcall", SYS_socketcall }, /* 102 */ ++ { 2, TD, sys_socketcall, "socketcall" ++#ifdef __NR_socketcall ++ , SYS_socketcall ++#endif ++ }, /* 102 */ + { 3, 0, sys_syslog, "syslog" }, /* 103 */ + { 3, 0, sys_setitimer, "setitimer" }, /* 104 */ + { 2, 0, sys_getitimer, "getitimer" }, /* 105 */ +@@ -145,7 +149,11 @@ + { 4, TP, sys_wait4, "wait4", SYS_wait4 }, /* 114 */ + { 1, 0, sys_swapoff, "swapoff" }, /* 115 */ + { 1, 0, sys_sysinfo, "sysinfo" }, /* 116 */ +- { 6, 0, sys_ipc, "ipc", SYS_ipc }, /* 117 */ ++ { 6, 0, sys_ipc, "ipc" ++#ifdef __NR_ipc ++ , SYS_ipc ++#endif ++ }, /* 117 */ + { 1, TD, sys_fsync, "fsync" }, /* 118 */ + { 1, TS, sys_sigreturn, "sigreturn" }, /* 119 */ + { 5, TP, sys_clone, "clone", SYS_clone }, /* 120 */ +@@ -282,7 +290,11 @@ + { 3, 0, sys_io_cancel, "io_cancel" }, /* 249 */ + { 5, 0, sys_fadvise64, "fadvise64" }, /* 250 */ + { 5, 0, printargs, "SYS_251" }, /* 251 */ +- { 1, TP, sys_exit, "exit_group", __NR_exit_group }, /* 252 */ ++ { 1, TP, sys_exit, "exit_group" ++#ifdef __NR_exit_group ++ , __NR_exit_group ++#endif ++ }, /* 252 */ + { 4, 0, printargs, "lookup_dcookie"}, /* 253 */ + { 1, 0, sys_epoll_create, "epoll_create" }, /* 254 */ + { 4, TD, sys_epoll_ctl, "epoll_ctl" }, /* 255 */ -- cgit v1.2.3 From ac17b542fe3737eb3eb84fd30ada615a21e96b55 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Tue, 27 Oct 2009 20:06:46 +0100 Subject: config/binutils: add latest version 2.20 Also add patchset vampirised from Gentoo. --- config/binutils/binutils.in | 5 + patches/binutils/2.20/100-ppc64-pie.patch | 16 ++ patches/binutils/2.20/110-RPATH_ENVVAR-smack.patch | 13 ++ patches/binutils/2.20/120-sh-targets.patch | 47 ++++ patches/binutils/2.20/130-ld-sysroot.patch | 36 ++++ .../binutils/2.20/140-check_ldrunpath_length.patch | 47 ++++ .../binutils/2.20/150-pt-pax-flags-20090909.patch | 238 +++++++++++++++++++++ patches/binutils/2.20/160-amd64-32bit-path.patch | 16 ++ patches/binutils/2.20/170-warn-textrel.patch | 59 +++++ .../2.20/180-only-use-new-ld-dtags.patch.disabled | 25 +++ patches/binutils/2.20/190-use-new-ld-dtags.patch | 10 + .../2.20/200-document-new-dtags-behaviour.patch | 16 ++ patches/binutils/2.20/210-generate-gnu-hash.patch | 8 + patches/binutils/2.20/220-use-relro.patch | 6 + patches/binutils/2.20/230-libiberty-pic.patch | 10 + 15 files changed, 552 insertions(+) create mode 100644 patches/binutils/2.20/100-ppc64-pie.patch create mode 100644 patches/binutils/2.20/110-RPATH_ENVVAR-smack.patch create mode 100644 patches/binutils/2.20/120-sh-targets.patch create mode 100644 patches/binutils/2.20/130-ld-sysroot.patch create mode 100644 patches/binutils/2.20/140-check_ldrunpath_length.patch create mode 100644 patches/binutils/2.20/150-pt-pax-flags-20090909.patch create mode 100644 patches/binutils/2.20/160-amd64-32bit-path.patch create mode 100644 patches/binutils/2.20/170-warn-textrel.patch create mode 100644 patches/binutils/2.20/180-only-use-new-ld-dtags.patch.disabled create mode 100644 patches/binutils/2.20/190-use-new-ld-dtags.patch create mode 100644 patches/binutils/2.20/200-document-new-dtags-behaviour.patch create mode 100644 patches/binutils/2.20/210-generate-gnu-hash.patch create mode 100644 patches/binutils/2.20/220-use-relro.patch create mode 100644 patches/binutils/2.20/230-libiberty-pic.patch (limited to 'config') diff --git a/config/binutils/binutils.in b/config/binutils/binutils.in index eb4061d1..f6e09f7c 100644 --- a/config/binutils/binutils.in +++ b/config/binutils/binutils.in @@ -8,6 +8,10 @@ choice # Don't remove next line # CT_INSERT_VERSION_BELOW +config BINUTILS_V_2_20 + bool + prompt "2.20" + config BINUTILS_V_2_19_1 bool prompt "2.19.1" @@ -34,6 +38,7 @@ config BINUTILS_VERSION string # Don't remove next line # CT_INSERT_VERSION_STRING_BELOW + default "2.20" if BINUTILS_V_2_20 default "2.19.1" if BINUTILS_V_2_19_1 default "2.19" if BINUTILS_V_2_19 default "2.18" if BINUTILS_V_2_18 diff --git a/patches/binutils/2.20/100-ppc64-pie.patch b/patches/binutils/2.20/100-ppc64-pie.patch new file mode 100644 index 00000000..879ea913 --- /dev/null +++ b/patches/binutils/2.20/100-ppc64-pie.patch @@ -0,0 +1,16 @@ +--- bfd/elf64-ppc.c.jj 2004-09-27 16:46:06.000000000 -0400 ++++ bfd/elf64-ppc.c 2004-10-04 09:09:50.000000000 -0400 +@@ -9681,7 +9681,12 @@ ppc64_elf_relocate_section (bfd *output_ + else if (!SYMBOL_REFERENCES_LOCAL (info, &h->elf) + && !is_opd + && r_type != R_PPC64_TOC) +- outrel.r_info = ELF64_R_INFO (h->elf.dynindx, r_type); ++ { ++ outrel.r_info = ELF64_R_INFO (h->elf.dynindx, r_type); ++ if (h->elf.dynindx == -1 ++ && h->elf.root.type == bfd_link_hash_undefweak) ++ memset (&outrel, 0, sizeof outrel); ++ } + else + { + /* This symbol is local, or marked to become local, diff --git a/patches/binutils/2.20/110-RPATH_ENVVAR-smack.patch b/patches/binutils/2.20/110-RPATH_ENVVAR-smack.patch new file mode 100644 index 00000000..efa0ec94 --- /dev/null +++ b/patches/binutils/2.20/110-RPATH_ENVVAR-smack.patch @@ -0,0 +1,13 @@ +http://sourceware.org/ml/binutils/2007-07/msg00401.html +http://sourceware.org/bugzilla/show_bug.cgi?id=4970 + +--- configure ++++ configure +@@ -5601,6 +5601,7 @@ case "${host}" in + *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; + *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; + esac ++RPATH_ENVVAR="cant_touch_this_nah_nah_nah" + + # On systems where the dynamic library environment variable is PATH, + if test "$RPATH_ENVVAR" = PATH; then diff --git a/patches/binutils/2.20/120-sh-targets.patch b/patches/binutils/2.20/120-sh-targets.patch new file mode 100644 index 00000000..4379ede4 --- /dev/null +++ b/patches/binutils/2.20/120-sh-targets.patch @@ -0,0 +1,47 @@ +r10231 | lethal | 2005-05-02 09:58:00 -0400 (Mon, 02 May 2005) | 13 lines + +Likewise, binutils has no idea about any of these new targets either, so we +fix that up too.. now we're able to actually build a real toolchain for +sh2a_nofpu- and other more ineptly named toolchains (and yes, there are more +inept targets than that one, really. Go look, I promise). + +--- binutils-2.16.90.0.2-dist/configure ++++ binutils-2.16.90.0.2/configure +@@ -1207,7 +1207,7 @@ + am33_2.0-*-linux*) + noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" + ;; +- sh-*-linux*) ++ sh*-*-linux*) + noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" + ;; + sh*-*-pe|mips*-*-pe|*arm-wince-pe) +@@ -1495,7 +1495,7 @@ + romp-*-*) + noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}" + ;; +- sh-*-* | sh64-*-*) ++ sh*-*-* | sh64-*-*) + case "${host}" in + i[3456789]86-*-vsta) ;; # don't add gprof back in + i[3456789]86-*-go32*) ;; # don't add gprof back in +--- binutils-2.16.90.0.2-dist/configure.ac ++++ binutils-2.16.90.0.2/configure.ac +@@ -424,7 +424,7 @@ + am33_2.0-*-linux*) + noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" + ;; +- sh-*-linux*) ++ sh*-*-linux*) + noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" + ;; + sh*-*-pe|mips*-*-pe|*arm-wince-pe) +@@ -712,7 +712,7 @@ + romp-*-*) + noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}" + ;; +- sh-*-* | sh64-*-*) ++ sh*-*-* | sh64-*-*) + case "${host}" in + i[[3456789]]86-*-vsta) ;; # don't add gprof back in + i[[3456789]]86-*-go32*) ;; # don't add gprof back in diff --git a/patches/binutils/2.20/130-ld-sysroot.patch b/patches/binutils/2.20/130-ld-sysroot.patch new file mode 100644 index 00000000..ddf95b1a --- /dev/null +++ b/patches/binutils/2.20/130-ld-sysroot.patch @@ -0,0 +1,36 @@ +Signed-off-by: Sven Rebhan + +Always try to prepend the sysroot prefix to absolute filenames first. + +http://bugs.gentoo.org/275666 +http://sourceware.org/bugzilla/show_bug.cgi?id=10340 + +--- ld/ldfile.c ++++ ld/ldfile.c +@@ -308,18 +308,24 @@ + directory first. */ + if (! entry->is_archive) + { +- if (entry->sysrooted && IS_ABSOLUTE_PATH (entry->filename)) ++ /* For absolute pathnames, try to always open the file in the ++ sysroot first. If this fails, try to open the file at the ++ given location. */ ++ entry->sysrooted = is_sysrooted_pathname(entry->filename, FALSE); ++ if (IS_ABSOLUTE_PATH (entry->filename) && ld_sysroot && ! entry->sysrooted) + { + char *name = concat (ld_sysroot, entry->filename, + (const char *) NULL); + if (ldfile_try_open_bfd (name, entry)) + { + entry->filename = name; ++ entry->sysrooted = TRUE; + return TRUE; + } + free (name); + } +- else if (ldfile_try_open_bfd (entry->filename, entry)) ++ ++ if (ldfile_try_open_bfd (entry->filename, entry)) + { + entry->sysrooted = IS_ABSOLUTE_PATH (entry->filename) + && is_sysrooted_pathname (entry->filename, TRUE); diff --git a/patches/binutils/2.20/140-check_ldrunpath_length.patch b/patches/binutils/2.20/140-check_ldrunpath_length.patch new file mode 100644 index 00000000..498651a9 --- /dev/null +++ b/patches/binutils/2.20/140-check_ldrunpath_length.patch @@ -0,0 +1,47 @@ +#!/bin/sh -e +## 012_check_ldrunpath_length.dpatch by Chris Chimelis +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Only generate an RPATH entry if LD_RUN_PATH is not empty, for +## DP: cases where -rpath isn't specified. (#151024) + +if [ $# -ne 1 ]; then + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +fi + +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts +patch_opts="${patch_opts:--f --no-backup-if-mismatch}" + +case "$1" in + -patch) patch $patch_opts -p1 < $0;; + -unpatch) patch $patch_opts -p1 -R < $0;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1;; +esac + +exit 0 + +@DPATCH@ +diff -urNad /home/james/debian/packages/binutils/new/binutils-2.15/ld/emultempl/elf32.em binutils-2.15/ld/emultempl/elf32.em +--- /home/james/debian/packages/binutils/new/binutils-2.15/ld/emultempl/elf32.em 2004-05-21 23:12:58.000000000 +0100 ++++ binutils-2.15/ld/emultempl/elf32.em 2004-05-21 23:12:59.000000000 +0100 +@@ -692,6 +692,8 @@ + && command_line.rpath == NULL) + { + lib_path = (const char *) getenv ("LD_RUN_PATH"); ++ if ((lib_path) && (strlen (lib_path) == 0)) ++ lib_path = NULL; + if (gld${EMULATION_NAME}_search_needed (lib_path, &n, + force)) + break; +@@ -871,6 +873,8 @@ + rpath = command_line.rpath; + if (rpath == NULL) + rpath = (const char *) getenv ("LD_RUN_PATH"); ++ if ((rpath) && (strlen (rpath) == 0)) ++ rpath = NULL; + if (! (bfd_elf_size_dynamic_sections + (output_bfd, command_line.soname, rpath, + command_line.filter_shlib, diff --git a/patches/binutils/2.20/150-pt-pax-flags-20090909.patch b/patches/binutils/2.20/150-pt-pax-flags-20090909.patch new file mode 100644 index 00000000..f0a99054 --- /dev/null +++ b/patches/binutils/2.20/150-pt-pax-flags-20090909.patch @@ -0,0 +1,238 @@ +--- binutils-2.20/bfd/elf-bfd.h ++++ binutils-2.20/bfd/elf-bfd.h +@@ -1527,6 +1527,9 @@ struct elf_obj_tdata + /* Segment flags for the PT_GNU_STACK segment. */ + unsigned int stack_flags; + ++ /* Segment flags for the PT_PAX_FLAGS segment. */ ++ unsigned int pax_flags; ++ + /* Symbol version definitions in external objects. */ + Elf_Internal_Verdef *verdef; + +--- binutils-2.20/bfd/elf.c ++++ binutils-2.20/bfd/elf.c +@@ -1081,6 +1081,7 @@ get_segment_type (unsigned int p_type) + case PT_GNU_EH_FRAME: pt = "EH_FRAME"; break; + case PT_GNU_STACK: pt = "STACK"; break; + case PT_GNU_RELRO: pt = "RELRO"; break; ++ case PT_PAX_FLAGS: pt = "PAX_FLAGS"; break; + default: pt = NULL; break; + } + return pt; +@@ -2379,6 +2380,9 @@ bfd_section_from_phdr (bfd *abfd, Elf_Internal_Phdr *hdr, int index) + case PT_GNU_RELRO: + return _bfd_elf_make_section_from_phdr (abfd, hdr, index, "relro"); + ++ case PT_PAX_FLAGS: ++ return _bfd_elf_make_section_from_phdr (abfd, hdr, index, "pax_flags"); ++ + default: + /* Check for any processor-specific program segment types. */ + bed = get_elf_backend_data (abfd); +@@ -3393,6 +3397,11 @@ get_program_header_size (bfd *abfd, struct bfd_link_info *info) + ++segs; + } + ++ { ++ /* We need a PT_PAX_FLAGS segment. */ ++ ++segs; ++ } ++ + for (s = abfd->sections; s != NULL; s = s->next) + { + if ((s->flags & SEC_LOAD) != 0 +@@ -3972,6 +3981,20 @@ _bfd_elf_map_sections_to_segments (bfd *abfd, struct bfd_link_info *info) + } + } + ++ { ++ amt = sizeof (struct elf_segment_map); ++ m = bfd_zalloc (abfd, amt); ++ if (m == NULL) ++ goto error_return; ++ m->next = NULL; ++ m->p_type = PT_PAX_FLAGS; ++ m->p_flags = elf_tdata (abfd)->pax_flags; ++ m->p_flags_valid = 1; ++ ++ *pm = m; ++ pm = &m->next; ++ } ++ + free (sections); + elf_tdata (abfd)->segment_map = mfirst; + } +@@ -5176,7 +5199,8 @@ rewrite_elf_program_header (bfd *ibfd, bfd *obfd) + 6. PT_TLS segment includes only SHF_TLS sections. + 7. SHF_TLS sections are only in PT_TLS or PT_LOAD segments. + 8. PT_DYNAMIC should not contain empty sections at the beginning +- (with the possible exception of .dynamic). */ ++ (with the possible exception of .dynamic). ++ 9. PT_PAX_FLAGS segments do not include any sections. */ + #define IS_SECTION_IN_INPUT_SEGMENT(section, segment, bed) \ + ((((segment->p_paddr \ + ? IS_CONTAINED_BY_LMA (section, segment, segment->p_paddr) \ +@@ -5184,6 +5208,7 @@ rewrite_elf_program_header (bfd *ibfd, bfd *obfd) + && (section->flags & SEC_ALLOC) != 0) \ + || IS_NOTE (segment, section)) \ + && segment->p_type != PT_GNU_STACK \ ++ && segment->p_type != PT_PAX_FLAGS \ + && (segment->p_type != PT_TLS \ + || (section->flags & SEC_THREAD_LOCAL)) \ + && (segment->p_type == PT_LOAD \ +--- binutils-2.20/bfd/elflink.c ++++ binutils-2.20/bfd/elflink.c +@@ -5465,16 +5465,30 @@ bfd_elf_size_dynamic_sections (bfd *output_bfd, + return TRUE; + + bed = get_elf_backend_data (output_bfd); ++ ++ elf_tdata (output_bfd)->pax_flags = PF_NORANDEXEC; ++ if (info->execheap) ++ elf_tdata (output_bfd)->pax_flags |= PF_NOMPROTECT; ++ else if (info->noexecheap) ++ elf_tdata (output_bfd)->pax_flags |= PF_MPROTECT; ++ + if (info->execstack) +- elf_tdata (output_bfd)->stack_flags = PF_R | PF_W | PF_X; ++ { ++ elf_tdata (output_bfd)->stack_flags = PF_R | PF_W | PF_X; ++ elf_tdata (output_bfd)->pax_flags |= PF_EMUTRAMP; ++ } + else if (info->noexecstack) +- elf_tdata (output_bfd)->stack_flags = PF_R | PF_W; ++ { ++ elf_tdata (output_bfd)->stack_flags = PF_R | PF_W; ++ elf_tdata (output_bfd)->pax_flags |= PF_NOEMUTRAMP; ++ } + else + { + bfd *inputobj; + asection *notesec = NULL; + int exec = 0; + ++ elf_tdata (output_bfd)->pax_flags |= PF_NOEMUTRAMP; + for (inputobj = info->input_bfds; + inputobj; + inputobj = inputobj->link_next) +@@ -5487,7 +5501,11 @@ bfd_elf_size_dynamic_sections (bfd *output_bfd, + if (s) + { + if (s->flags & SEC_CODE) +- exec = PF_X; ++ { ++ elf_tdata (output_bfd)->pax_flags &= ~PF_NOEMUTRAMP; ++ elf_tdata (output_bfd)->pax_flags |= PF_EMUTRAMP; ++ exec = PF_X; ++ } + notesec = s; + } + else if (bed->default_execstack) +--- binutils-2.20/binutils/readelf.c ++++ binutils-2.20/binutils/readelf.c +@@ -2556,6 +2556,7 @@ get_segment_type (unsigned long p_type) + return "GNU_EH_FRAME"; + case PT_GNU_STACK: return "GNU_STACK"; + case PT_GNU_RELRO: return "GNU_RELRO"; ++ case PT_PAX_FLAGS: return "PAX_FLAGS"; + + default: + if ((p_type >= PT_LOPROC) && (p_type <= PT_HIPROC)) +--- binutils-2.20/include/bfdlink.h ++++ binutils-2.20/include/bfdlink.h +@@ -319,6 +319,14 @@ struct bfd_link_info + /* TRUE if PT_GNU_RELRO segment should be created. */ + unsigned int relro: 1; + ++ /* TRUE if PT_PAX_FLAGS segment should be created with PF_NOMPROTECT ++ flags. */ ++ unsigned int execheap: 1; ++ ++ /* TRUE if PT_PAX_FLAGS segment should be created with PF_MPROTECT ++ flags. */ ++ unsigned int noexecheap: 1; ++ + /* TRUE if we should warn when adding a DT_TEXTREL to a shared object. */ + unsigned int warn_shared_textrel: 1; + +--- binutils-2.20/include/elf/common.h ++++ binutils-2.20/include/elf/common.h +@@ -422,6 +422,7 @@ + #define PT_SUNW_EH_FRAME PT_GNU_EH_FRAME /* Solaris uses the same value */ + #define PT_GNU_STACK (PT_LOOS + 0x474e551) /* Stack flags */ + #define PT_GNU_RELRO (PT_LOOS + 0x474e552) /* Read-only after relocation */ ++#define PT_PAX_FLAGS (PT_LOOS + 0x5041580) /* PaX flags */ + + /* Program segment permissions, in program header p_flags field. */ + +@@ -432,6 +433,21 @@ + #define PF_MASKOS 0x0FF00000 /* New value, Oct 4, 1999 Draft */ + #define PF_MASKPROC 0xF0000000 /* Processor-specific reserved bits */ + ++/* Flags to control PaX behavior. */ ++ ++#define PF_PAGEEXEC (1 << 4) /* Enable PAGEEXEC */ ++#define PF_NOPAGEEXEC (1 << 5) /* Disable PAGEEXEC */ ++#define PF_SEGMEXEC (1 << 6) /* Enable SEGMEXEC */ ++#define PF_NOSEGMEXEC (1 << 7) /* Disable SEGMEXEC */ ++#define PF_MPROTECT (1 << 8) /* Enable MPROTECT */ ++#define PF_NOMPROTECT (1 << 9) /* Disable MPROTECT */ ++#define PF_RANDEXEC (1 << 10) /* Enable RANDEXEC */ ++#define PF_NORANDEXEC (1 << 11) /* Disable RANDEXEC */ ++#define PF_EMUTRAMP (1 << 12) /* Enable EMUTRAMP */ ++#define PF_NOEMUTRAMP (1 << 13) /* Disable EMUTRAMP */ ++#define PF_RANDMMAP (1 << 14) /* Enable RANDMMAP */ ++#define PF_NORANDMMAP (1 << 15) /* Disable RANDMMAP */ ++ + /* Values for section header, sh_type field. */ + + #define SHT_NULL 0 /* Section header table entry unused */ +--- binutils-2.20/ld/emultempl/elf32.em ++++ binutils-2.20/ld/emultempl/elf32.em +@@ -2159,6 +2159,16 @@ fragment <, Mike Frysinger + + * bfd/elflink.c (bfd_elf_final_link): Check all objects for TEXTRELs. + * ld/ldmain.c (main): Change textrel warning default to true. + * ld/testsuite/lib/ld-lib.exp (default_ld_simple_link): Scrub TEXTREL + warnings from ld output. + +--- bfd/elflink.c ++++ bfd/elflink.c +@@ -8652,14 +8652,12 @@ + goto error_return; + + /* Check for DT_TEXTREL (late, in case the backend removes it). */ +- if (info->warn_shared_textrel && info->shared) ++ o = bfd_get_section_by_name (dynobj, ".dynamic"); ++ if (info->warn_shared_textrel && o != NULL) + { + bfd_byte *dyncon, *dynconend; + + /* Fix up .dynamic entries. */ +- o = bfd_get_section_by_name (dynobj, ".dynamic"); +- BFD_ASSERT (o != NULL); +- + dyncon = o->contents; + dynconend = o->contents + o->size; + for (; dyncon < dynconend; dyncon += bed->s->sizeof_dyn) +@@ -8702,7 +8702,7 @@ bfd_elf_final_link (bfd *abfd, struct bf + if (dyn.d_tag == DT_TEXTREL) + { + info->callbacks->einfo +- (_("%P: warning: creating a DT_TEXTREL in a shared object.\n")); ++ (_("%P: warning: creating a DT_TEXTREL in object.\n")); + break; + } + } +--- ld/ldmain.c ++++ ld/ldmain.c +@@ -282,2 +282,3 @@ main (int argc, char **argv) + link_info.spare_dynamic_tags = 5; ++ link_info.warn_shared_textrel = TRUE; + link_info.sharable_sections = FALSE; +--- ld/testsuite/lib/ld-lib.exp ++++ ld/testsuite/lib/ld-lib.exp +@@ -181,6 +181,10 @@ proc default_ld_simple_link { ld target + # symbol, since the default linker script might use ENTRY. + regsub -all "(^|\n)(\[^\n\]*: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output + ++ # Gentoo tweak: ++ # We want to ignore TEXTREL warnings since we force enable them by default ++ regsub -all "^lt-ld-new: warning: creating a DT_TEXTREL in object\." $exec_output "\\1" exec_output ++ + if [string match "" $exec_output] then { + return 1 + } else { diff --git a/patches/binutils/2.20/180-only-use-new-ld-dtags.patch.disabled b/patches/binutils/2.20/180-only-use-new-ld-dtags.patch.disabled new file mode 100644 index 00000000..89895795 --- /dev/null +++ b/patches/binutils/2.20/180-only-use-new-ld-dtags.patch.disabled @@ -0,0 +1,25 @@ +Don't generate RPATH if we're going to be generating RUNPATH. + +need to ponder what ramifications this has before enabling it + +--- binutils/bfd/elflink.c ++++ binutils/bfd/elflink.c +@@ -5382,11 +5382,15 @@ + + indx = _bfd_elf_strtab_add (elf_hash_table (info)->dynstr, rpath, + TRUE); +- if (indx == (bfd_size_type) -1 +- || !_bfd_elf_add_dynamic_entry (info, DT_RPATH, indx)) ++ if (indx == (bfd_size_type) -1) + return FALSE; + +- if (info->new_dtags) ++ if (!info->new_dtags) ++ { ++ if (!_bfd_elf_add_dynamic_entry (info, DT_RPATH, indx)) ++ return FALSE; ++ } ++ else + { + _bfd_elf_strtab_addref (elf_hash_table (info)->dynstr, indx); + if (!_bfd_elf_add_dynamic_entry (info, DT_RUNPATH, indx)) diff --git a/patches/binutils/2.20/190-use-new-ld-dtags.patch b/patches/binutils/2.20/190-use-new-ld-dtags.patch new file mode 100644 index 00000000..84e20f70 --- /dev/null +++ b/patches/binutils/2.20/190-use-new-ld-dtags.patch @@ -0,0 +1,10 @@ +--- binutils/ld/ldmain.c ++++ binutils/ld/ldmain.c +@@ -296,6 +296,7 @@ main (int argc, char **argv) + + link_info.allow_undefined_version = TRUE; + link_info.keep_memory = TRUE; ++ link_info.new_dtags = TRUE; + link_info.combreloc = TRUE; + link_info.strip_discarded = TRUE; + link_info.callbacks = &link_callbacks; diff --git a/patches/binutils/2.20/200-document-new-dtags-behaviour.patch b/patches/binutils/2.20/200-document-new-dtags-behaviour.patch new file mode 100644 index 00000000..0013a2dd --- /dev/null +++ b/patches/binutils/2.20/200-document-new-dtags-behaviour.patch @@ -0,0 +1,16 @@ +Index: binutils-2.19.51.0.5/ld/ld.texinfo +=================================================================== +--- binutils-2.19.51.0.5.orig/ld/ld.texinfo ++++ binutils-2.19.51.0.5/ld/ld.texinfo +@@ -2036,8 +2036,9 @@ This linker can create the new dynamic t + systems may not understand them. If you specify + @option{--enable-new-dtags}, the dynamic tags will be created as needed. + If you specify @option{--disable-new-dtags}, no new dynamic tags will be +-created. By default, the new dynamic tags are not created. Note that +-those options are only available for ELF systems. ++created. On Gentoo, by default, the new dynamic tags are created (this ++differs from upstream behaviour). Note that those options are only ++available for ELF systems. + + @kindex --hash-size=@var{number} + @item --hash-size=@var{number} diff --git a/patches/binutils/2.20/210-generate-gnu-hash.patch b/patches/binutils/2.20/210-generate-gnu-hash.patch new file mode 100644 index 00000000..b427c897 --- /dev/null +++ b/patches/binutils/2.20/210-generate-gnu-hash.patch @@ -0,0 +1,8 @@ +--- binutils/ld/ldmain.c ++++ binutils/ld/ldmain.c +@@ -273,2 +273,5 @@ main (int argc, char **argv) + link_info.emit_hash = TRUE; ++#ifndef __mips__ ++ link_info.emit_gnu_hash = TRUE; ++#endif + link_info.callbacks = &link_callbacks; diff --git a/patches/binutils/2.20/220-use-relro.patch b/patches/binutils/2.20/220-use-relro.patch new file mode 100644 index 00000000..abd5187c --- /dev/null +++ b/patches/binutils/2.20/220-use-relro.patch @@ -0,0 +1,6 @@ +--- binutils/ld/ldmain.c ++++ binutils/ld/ldmain.c +@@ -293,2 +293,3 @@ main (int argc, char **argv) + link_info.combreloc = TRUE; ++ link_info.relro = TRUE; + link_info.strip_discarded = TRUE; diff --git a/patches/binutils/2.20/230-libiberty-pic.patch b/patches/binutils/2.20/230-libiberty-pic.patch new file mode 100644 index 00000000..214c44bc --- /dev/null +++ b/patches/binutils/2.20/230-libiberty-pic.patch @@ -0,0 +1,10 @@ +--- libiberty/Makefile.in.mps 2004-05-13 15:53:17.000000000 +0200 ++++ libiberty/Makefile.in 2004-05-13 15:52:53.000000000 +0200 +@@ -224,6 +224,7 @@ $(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA + $(AR) $(AR_FLAGS) $(TARGETLIB) \ + $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \ + $(RANLIB) $(TARGETLIB); \ ++ cp $(TARGETLIB) ../ ; \ + cd ..; \ + else true; fi + -- cgit v1.2.3 From 0b6a9e5c74a9f0abfd00b67cf25d16990ceb38a8 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Wed, 28 Oct 2009 19:15:50 +0100 Subject: config: mark now old versions as being OBSOLETE These versions are kept for the upcoming release, but they will be removed from the next release if they are not used. --- config/binutils/binutils.in | 6 ++++-- config/cc/gcc.in | 15 ++++++++++----- config/companion_libs/cloog.in | 9 ++++++--- config/companion_libs/gmp.in | 6 ++++-- config/companion_libs/mpc.in | 3 ++- config/companion_libs/mpfr.in | 6 ++++-- config/debug/duma.in | 12 ++++++++---- config/debug/gdb.in | 3 ++- config/debug/ltrace.in | 6 ++++-- config/debug/strace.in | 9 ++++++--- config/kernel/linux.in | 6 ++++-- config/libc/eglibc.in | 12 ++++++++---- config/libc/glibc.in | 15 ++++++++++----- config/libc/uClibc.in | 6 ++++-- config/tools/libelf.in | 3 ++- config/tools/sstrip.in | 3 ++- 16 files changed, 80 insertions(+), 40 deletions(-) (limited to 'config') diff --git a/config/binutils/binutils.in b/config/binutils/binutils.in index f6e09f7c..11b09c70 100644 --- a/config/binutils/binutils.in +++ b/config/binutils/binutils.in @@ -26,11 +26,13 @@ config BINUTILS_V_2_18 config BINUTILS_V_2_17 bool - prompt "2.17" + prompt "2.17 (OBSOLETE)" + depends on OBSOLETE config BINUTILS_V_2_16_1 bool - prompt "2.16.1" + prompt "2.16.1 (OBSOLETE)" + depends on OBSOLETE endchoice diff --git a/config/cc/gcc.in b/config/cc/gcc.in index a3c3eed2..e935a8b0 100644 --- a/config/cc/gcc.in +++ b/config/cc/gcc.in @@ -72,7 +72,8 @@ config CC_V_4_2_4 config CC_V_4_2_3 bool - prompt "4.2.3" + prompt "4.2.3 (OBSOLETE)" + depends on OBSOLETE config CC_V_4_2_2 bool @@ -80,19 +81,23 @@ config CC_V_4_2_2 config CC_V_4_2_1 bool - prompt "4.2.1" + prompt "4.2.1 (OBSOLETE)" + depends on OBSOLETE config CC_V_4_2_0 bool - prompt "4.2.0" + prompt "4.2.0 (OBSOLETE)" + depends on OBSOLETE config CC_V_4_1_2 bool - prompt "4.1.2" + prompt "4.1.2 (OBSOLETE)" + depends on OBSOLETE config CC_V_4_0_4 bool - prompt "4.0.4" + prompt "4.0.4 (OBSOLETE)" + depends on OBSOLETE config CC_V_3_4_6 bool diff --git a/config/companion_libs/cloog.in b/config/companion_libs/cloog.in index 75ddb149..1786d81b 100644 --- a/config/companion_libs/cloog.in +++ b/config/companion_libs/cloog.in @@ -16,15 +16,18 @@ config CLOOG_V_0_15_6 config CLOOG_V_0_15_5 bool - prompt "0.15.5" + prompt "0.15.5 (OBSOLETE)" + depends on OBSOLETE config CLOOG_V_0_15_4 bool - prompt "0.15.4" + prompt "0.15.4 (OBSOLETE)" + depends on OBSOLETE config CLOOG_V_0_15_3 bool - prompt "0.15.3" + prompt "0.15.3 (OBSOLETE)" + depends on OBSOLETE endchoice diff --git a/config/companion_libs/gmp.in b/config/companion_libs/gmp.in index 75628d9a..67024925 100644 --- a/config/companion_libs/gmp.in +++ b/config/companion_libs/gmp.in @@ -16,11 +16,13 @@ config GMP_V_4_3_0 config GMP_V_4_2_4 bool - prompt "4.2.4" + prompt "4.2.4 (OBSOLETE)" + depends on OBSOLETE config GMP_V_4_2_2 bool - prompt "4.2.2" + prompt "4.2.2 (OBSOLETE)" + depends on OBSOLETE endchoice diff --git a/config/companion_libs/mpc.in b/config/companion_libs/mpc.in index 27e9b906..53182384 100644 --- a/config/companion_libs/mpc.in +++ b/config/companion_libs/mpc.in @@ -12,7 +12,8 @@ config MPC_V_0_7 config MPC_V_0_6 bool - prompt "0.6" + prompt "0.6 (OBSOLETE)" + depends on OBSOLETE endchoice diff --git a/config/companion_libs/mpfr.in b/config/companion_libs/mpfr.in index 61f057a1..118e229d 100644 --- a/config/companion_libs/mpfr.in +++ b/config/companion_libs/mpfr.in @@ -16,11 +16,13 @@ config MPFR_V_2_4_0 config MPFR_V_2_3_2 bool - prompt "2.3.2" + prompt "2.3.2 (OBSOLETE)" + depends on OBSOLETE config MPFR_V_2_3_1 bool - prompt "2.3.1" + prompt "2.3.1 (OBSOLETE)" + depends on OBSOLETE endchoice diff --git a/config/debug/duma.in b/config/debug/duma.in index 0afb5b8e..753a879d 100644 --- a/config/debug/duma.in +++ b/config/debug/duma.in @@ -29,19 +29,23 @@ config DUMA_V_2_5_15 config DUMA_V_2_5_14 bool - prompt "2_5_14" + prompt "2_5_14 (OBSOLETE)" + depends on OBSOLETE config DUMA_V_2_5_12 bool - prompt "2_5_12" + prompt "2_5_12 (OBSOLETE)" + depends on OBSOLETE config DUMA_V_2_5_8 bool - prompt "2_5_8" + prompt "2_5_8 (OBSOLETE)" + depends on OBSOLETE config DUMA_V_2_5_1 bool - prompt "2_5_1" + prompt "2_5_1 (OBSOLETE)" + depends on OBSOLETE endchoice diff --git a/config/debug/gdb.in b/config/debug/gdb.in index 1a4bc602..ecda6c58 100644 --- a/config/debug/gdb.in +++ b/config/debug/gdb.in @@ -138,7 +138,8 @@ config NCURSES_V_5_7 config NCURSES_V_5_6 bool - prompt "5.6" + prompt "5.6 (OBSOLETE)" + depends on OBSOLETE endchoice diff --git a/config/debug/ltrace.in b/config/debug/ltrace.in index 50d365d1..b119410f 100644 --- a/config/debug/ltrace.in +++ b/config/debug/ltrace.in @@ -25,11 +25,13 @@ config LTRACE_V_0_5_1 config LTRACE_V_0_5 bool - prompt "0.5" + prompt "0.5 (OBSOLETE)" + depends on OBSOLETE config LTRACE_V_0_4 bool - prompt "0.4" + prompt "0.4 (OBSOLETE)" + depends on OBSOLETE endchoice diff --git a/config/debug/strace.in b/config/debug/strace.in index 4fc58462..0b9e4466 100644 --- a/config/debug/strace.in +++ b/config/debug/strace.in @@ -19,15 +19,18 @@ config STRACE_V_4_5_18 config STRACE_V_4_5_17 bool - prompt "4.5.17" + prompt "4.5.17 (OBSOLETE)" + depends on OBSOLETE config STRACE_V_4_5_16 bool - prompt "4.5.16" + prompt "4.5.16 (OBSOLETE)" + depends on OBSOLETE config STRACE_V_4_5_15 bool - prompt "4.5.15" + prompt "4.5.15 (OBSOLETE)" + depends on OBSOLETE endchoice diff --git a/config/kernel/linux.in b/config/kernel/linux.in index 5235e2cb..9a388ee9 100644 --- a/config/kernel/linux.in +++ b/config/kernel/linux.in @@ -100,11 +100,13 @@ config KERNEL_V_2_6_30 config KERNEL_V_2_6_29_6 bool - prompt "2.6.29.6" + prompt "2.6.29.6 (OBSOLETE)" + depends on OBSOLETE config KERNEL_V_2_6_28_10 bool - prompt "2.6.28.10" + prompt "2.6.28.10 (OBSOLETE)" + depends on OBSOLETE config KERNEL_V_2_6_27_38 bool diff --git a/config/libc/eglibc.in b/config/libc/eglibc.in index 877b6f37..f37ff89c 100644 --- a/config/libc/eglibc.in +++ b/config/libc/eglibc.in @@ -28,19 +28,23 @@ config EGLIBC_V_2_9 config EGLIBC_V_2_8 bool - prompt "2_8" + prompt "2_8 (OBSOLETE)" + depends on OBSOLETE config EGLIBC_V_2_7 bool - prompt "2_7" + prompt "2_7 (OBSOLETE)" + depends on OBSOLETE config EGLIBC_V_2_6 bool - prompt "2_6" + prompt "2_6 (OBSOLETE)" + depends on OBSOLETE config EGLIBC_V_2_5 bool - prompt "2_5" + prompt "2_5 (OBSOLETE)" + depends on OBSOLETE config EGLIBC_V_TRUNK bool diff --git a/config/libc/glibc.in b/config/libc/glibc.in index 777657c2..ac57fa0a 100644 --- a/config/libc/glibc.in +++ b/config/libc/glibc.in @@ -26,23 +26,28 @@ config LIBC_V_2_8 config LIBC_V_2_7 bool - prompt "2.7" + prompt "2.7 (OBSOLETE)" + depends on OBSOLETE config LIBC_V_2_6_1 bool - prompt "2.6.1" + prompt "2.6.1 (OBSOLETE)" + depends on OBSOLETE config LIBC_V_2_6 bool - prompt "2.6" + prompt "2.6 (OBSOLETE)" + depends on OBSOLETE config LIBC_V_2_5_1 bool - prompt "2.5.1" + prompt "2.5.1 (OBSOLETE)" + depends on OBSOLETE config LIBC_V_2_5 bool - prompt "2.5" + prompt "2.5 (OBSOLETE)" + depends on OBSOLETE config LIBC_V_2_3_6 bool diff --git a/config/libc/uClibc.in b/config/libc/uClibc.in index dcaace34..d38f83d3 100644 --- a/config/libc/uClibc.in +++ b/config/libc/uClibc.in @@ -26,11 +26,13 @@ config LIBC_V_0_9_30 config LIBC_V_0_9_29 bool - prompt "0.9.29" + prompt "0.9.29 (OBSOLETE)" + depends on OBSOLETE config LIBC_V_0_9_28_3 bool - prompt "0.9.28.3" + prompt "0.9.28.3 (OBSOLETE)" + depends on OBSOLETE config LIBC_V_snapshot bool diff --git a/config/tools/libelf.in b/config/tools/libelf.in index 10ed90c7..f195868e 100644 --- a/config/tools/libelf.in +++ b/config/tools/libelf.in @@ -21,7 +21,8 @@ config LIBELF_V_0_8_11 config LIBELF_V_0_8_10 bool - prompt "0.8.10" + prompt "0.8.10 (OBSOLETE)" + depends on OBSOLETE endchoice diff --git a/config/tools/sstrip.in b/config/tools/sstrip.in index 5abd0f36..975e74fc 100644 --- a/config/tools/sstrip.in +++ b/config/tools/sstrip.in @@ -19,7 +19,8 @@ config SSTRIP_BUILDROOT config SSTRIP_ELFKICKERS bool - prompt "ELFkickers" + prompt "ELFkickers (OBSOLETE)" + depends on OBSOLETE help The original, ageing version, of sstrip from ELFkickers. Fully functional, but not maintained anymore. -- cgit v1.2.3