From 3d6d961fe070b5575a6c04a73d2aef6a4177addc Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Feb 29 2008 17:04:07 +0000 Subject: 2.18.50.0.4 --- diff --git a/.cvsignore b/.cvsignore index b414607..607b84c 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -binutils-2.18.50.0.3.tar.bz2 +binutils-2.18.50.0.4.tar.bz2 diff --git a/binutils-2.18.50.0.3-build-fixes.patch b/binutils-2.18.50.0.3-build-fixes.patch deleted file mode 100644 index 943ce2c..0000000 --- a/binutils-2.18.50.0.3-build-fixes.patch +++ /dev/null @@ -1,29 +0,0 @@ -2006-02-14 Jakub Jelinek - -ld/testsuite/ - * ld-shared/main.c (main): Prevent warnings about unused p. - * ld-elfcomm/common1b.c (dummy1): Add __attribute__((__used__)) for - GCC 3.3+. - ---- ld/testsuite/ld-shared/main.c.jj 2001-07-11 15:48:54.000000000 +0200 -+++ ld/testsuite/ld-shared/main.c 2006-02-14 10:07:08.000000000 +0100 -@@ -40,6 +40,8 @@ main () - { - int (*p) (); - -+ p = (void *) 0; -+ (void) p; - printf ("mainvar == %d\n", mainvar); - printf ("overriddenvar == %d\n", overriddenvar); - printf ("shlibvar1 == %d\n", shlibvar1); ---- ld/testsuite/ld-elfcomm/common1b.c.jj 2003-04-15 11:38:10.000000000 +0200 -+++ ld/testsuite/ld-elfcomm/common1b.c 2006-02-14 10:11:19.000000000 +0100 -@@ -1,3 +1,7 @@ --static char dummy1 = 'X'; -+static char dummy1 -+#if defined __GNUC__ && (__GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) -+ __attribute__((__used__)) -+#endif -+ = 'X'; - char foo1 [] = "Aligned at odd byte."; - char foo2 [4]; diff --git a/binutils-2.18.50.0.3-ia64-lib64.patch b/binutils-2.18.50.0.3-ia64-lib64.patch deleted file mode 100644 index def9ea9..0000000 --- a/binutils-2.18.50.0.3-ia64-lib64.patch +++ /dev/null @@ -1,36 +0,0 @@ -2004-05-14 Jakub Jelinek - - * emulparams/elf64_ia64.sh (LIBPATH_SUFFIX): Use */lib64 paths on - ia64-linux if /lib64 tree is present. - ---- ld/emulparams/elf64_ia64.sh.jj 2004-02-18 20:06:03.000000000 +0100 -+++ ld/emulparams/elf64_ia64.sh 2004-05-14 10:11:22.992278608 +0200 -@@ -37,3 +37,13 @@ OTHER_READONLY_SECTIONS="${OTHER_READONL - # .dtors. They have to be next to .sbss/.sbss2/.sdata/.sdata2. - SMALL_DATA_CTOR=" " - SMALL_DATA_DTOR=" " -+ -+# Linux modify the default library search path to first include -+# a 64-bit specific directory. -+case "$target" in -+ ia64*-linux*) -+ case "$EMULATION_NAME" in -+ *64*) test -d /lib64 && LIBPATH_SUFFIX=64 ;; -+ esac -+ ;; -+esac ---- ltconfig 2003-02-03 16:56:49.000000000 +0900 -+++ ltconfig 2003-02-03 16:56:49.000000000 +0900 -@@ -1240,10 +1240,10 @@ - - # Find out which ABI we are using (multilib hack). - case "$host_cpu" in -- x86_64*|s390*|sparc*|ppc*|powerpc*) -+ x86_64*|s390*|sparc*|ppc*|powerpc*|ia64) - echo "$progname:@lineno@: checking multilib ABI type" 1>&5 - touch conftest.$ac_ext -- if { (eval echo $progname: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then -+ if test -d /lib64 && { (eval echo $progname: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then - case `/usr/bin/file conftest.o` in - *64-bit*) - sys_lib_dlsearch_path_spec="/lib64 /usr/lib64" diff --git a/binutils-2.18.50.0.3-ltconfig-multilib.patch b/binutils-2.18.50.0.3-ltconfig-multilib.patch deleted file mode 100644 index 5b302c3..0000000 --- a/binutils-2.18.50.0.3-ltconfig-multilib.patch +++ /dev/null @@ -1,262 +0,0 @@ ---- binutils/configure.jj 2007-06-18 13:29:28.000000000 -0400 -+++ binutils/configure 2007-06-27 13:55:07.000000000 -0400 -@@ -8990,10 +8990,34 @@ rm -f conftest.err conftest.$ac_objext \ - # before this can be enabled. - hardcode_into_libs=yes - -+ # find out which ABI we are using -+ libsuff= -+ case "$host_cpu" in -+ x86_64*|s390*|powerpc*|ppc*|sparc*) -+ echo 'int i;' > conftest.$ac_ext -+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -+ (eval $ac_compile) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); }; then -+ case `/usr/bin/file conftest.$ac_objext` in -+ *64-bit*) -+ libsuff=64 -+ if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then -+ sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" -+ fi -+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" -+ ;; -+ esac -+ fi -+ rm -rf conftest* -+ ;; -+ esac -+ - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` -- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" -+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on ---- opcodes/configure.jj 2007-06-18 13:29:29.000000000 -0400 -+++ opcodes/configure 2007-06-27 13:55:08.000000000 -0400 -@@ -8420,10 +8420,34 @@ rm -f conftest.err conftest.$ac_objext \ - # before this can be enabled. - hardcode_into_libs=yes - -+ # find out which ABI we are using -+ libsuff= -+ case "$host_cpu" in -+ x86_64*|s390*|powerpc*|ppc*|sparc*) -+ echo 'int i;' > conftest.$ac_ext -+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -+ (eval $ac_compile) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); }; then -+ case `/usr/bin/file conftest.$ac_objext` in -+ *64-bit*) -+ libsuff=64 -+ if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then -+ sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" -+ fi -+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" -+ ;; -+ esac -+ fi -+ rm -rf conftest* -+ ;; -+ esac -+ - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` -- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" -+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on ---- gprof/configure.jj 2007-06-18 13:29:29.000000000 -0400 -+++ gprof/configure 2007-06-27 13:55:08.000000000 -0400 -@@ -8250,10 +8250,34 @@ rm -f conftest.err conftest.$ac_objext \ - # before this can be enabled. - hardcode_into_libs=yes - -+ # find out which ABI we are using -+ libsuff= -+ case "$host_cpu" in -+ x86_64*|s390*|powerpc*|ppc*|sparc*) -+ echo 'int i;' > conftest.$ac_ext -+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -+ (eval $ac_compile) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); }; then -+ case `/usr/bin/file conftest.$ac_objext` in -+ *64-bit*) -+ libsuff=64 -+ if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then -+ sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" -+ fi -+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" -+ ;; -+ esac -+ fi -+ rm -rf conftest* -+ ;; -+ esac -+ - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` -- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" -+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on ---- ld/configure.jj 2007-06-18 13:29:29.000000000 -0400 -+++ ld/configure 2007-06-27 13:55:08.000000000 -0400 -@@ -8253,10 +8253,34 @@ rm -f conftest.err conftest.$ac_objext \ - # before this can be enabled. - hardcode_into_libs=yes - -+ # find out which ABI we are using -+ libsuff= -+ case "$host_cpu" in -+ x86_64*|s390*|powerpc*|ppc*|sparc*) -+ echo 'int i;' > conftest.$ac_ext -+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -+ (eval $ac_compile) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); }; then -+ case `/usr/bin/file conftest.$ac_objext` in -+ *64-bit*) -+ libsuff=64 -+ if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then -+ sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" -+ fi -+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" -+ ;; -+ esac -+ fi -+ rm -rf conftest* -+ ;; -+ esac -+ - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` -- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" -+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on ---- gas/configure.jj 2007-06-18 13:29:28.000000000 -0400 -+++ gas/configure 2007-06-27 13:55:08.000000000 -0400 -@@ -8252,10 +8252,34 @@ rm -f conftest.err conftest.$ac_objext \ - # before this can be enabled. - hardcode_into_libs=yes - -+ # find out which ABI we are using -+ libsuff= -+ case "$host_cpu" in -+ x86_64*|s390*|powerpc*|ppc*|sparc*) -+ echo 'int i;' > conftest.$ac_ext -+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -+ (eval $ac_compile) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); }; then -+ case `/usr/bin/file conftest.$ac_objext` in -+ *64-bit*) -+ libsuff=64 -+ if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then -+ sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" -+ fi -+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" -+ ;; -+ esac -+ fi -+ rm -rf conftest* -+ ;; -+ esac -+ - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` -- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" -+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on ---- bfd/configure.jj 2007-06-18 13:29:28.000000000 -0400 -+++ bfd/configure 2007-06-27 13:55:08.000000000 -0400 -@@ -9156,10 +9156,34 @@ rm -f conftest.err conftest.$ac_objext \ - # before this can be enabled. - hardcode_into_libs=yes - -+ # find out which ABI we are using -+ libsuff= -+ case "$host_cpu" in -+ x86_64*|s390*|powerpc*|ppc*|sparc*) -+ echo 'int i;' > conftest.$ac_ext -+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -+ (eval $ac_compile) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); }; then -+ case `/usr/bin/file conftest.$ac_objext` in -+ *64-bit*) -+ libsuff=64 -+ if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then -+ sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" -+ fi -+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" -+ ;; -+ esac -+ fi -+ rm -rf conftest* -+ ;; -+ esac -+ - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` -- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" -+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on ---- libtool.m4.jj 2007-06-18 13:29:28.000000000 -0400 -+++ libtool.m4 2007-06-27 13:55:08.000000000 -0400 -@@ -2337,10 +2337,30 @@ linux* | k*bsd*-gnu) - # before this can be enabled. - hardcode_into_libs=yes - -+ # find out which ABI we are using -+ libsuff= -+ case "$host_cpu" in -+ x86_64*|s390*|powerpc*|ppc*|sparc*) -+ echo 'int i;' > conftest.$ac_ext -+ if AC_TRY_EVAL(ac_compile); then -+ case `/usr/bin/file conftest.$ac_objext` in -+ *64-bit*) -+ libsuff=64 -+ if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then -+ sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" -+ fi -+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" -+ ;; -+ esac -+ fi -+ rm -rf conftest* -+ ;; -+ esac -+ - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` -- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" -+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on diff --git a/binutils-2.18.50.0.3-place-orphan.patch b/binutils-2.18.50.0.3-place-orphan.patch deleted file mode 100644 index ae7c001..0000000 --- a/binutils-2.18.50.0.3-place-orphan.patch +++ /dev/null @@ -1,16 +0,0 @@ -2003-08-05 Jakub Jelinek - - * emulparams/elf64ppc.sh (OTHER_GOT_RELOC_SECTIONS): Add .rela.opd. - ---- ld/emulparams/elf64ppc.sh.jj 2003-07-28 10:24:45.000000000 -0400 -+++ ld/emulparams/elf64ppc.sh 2003-08-05 08:35:58.000000000 -0400 -@@ -28,7 +28,8 @@ else - .toc 0 : { *(.toc) }" - fi - OTHER_GOT_RELOC_SECTIONS=" -- .rela.toc ${RELOCATING-0} : { *(.rela.toc) }" -+ .rela.toc ${RELOCATING-0} : { *(.rela.toc) } -+ .rela.opd ${RELOCATING-0} : { *(.rela.opd) }" - OTHER_READWRITE_SECTIONS=" - .toc1 ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { *(.toc1) } - .opd ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { KEEP (*(.opd)) }" diff --git a/binutils-2.18.50.0.3-ppc64-pie.patch b/binutils-2.18.50.0.3-ppc64-pie.patch deleted file mode 100644 index 879ea91..0000000 --- a/binutils-2.18.50.0.3-ppc64-pie.patch +++ /dev/null @@ -1,16 +0,0 @@ ---- 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/binutils-2.18.50.0.3-symbolic-envvar-revert.patch b/binutils-2.18.50.0.3-symbolic-envvar-revert.patch deleted file mode 100644 index 9ed4170..0000000 --- a/binutils-2.18.50.0.3-symbolic-envvar-revert.patch +++ /dev/null @@ -1,50 +0,0 @@ ---- ld/NEWS.jj 2007-05-11 11:24:08.000000000 -0400 -+++ ld/NEWS 2007-06-12 05:04:49.000000000 -0400 -@@ -1,7 +1,4 @@ - -*- text -*- --* ELF: Support environment variables, LD_SYMBOLIC for -Bsymbolic and -- LD_SYMBOLIC_FUNCTIONS for -Bsymbolic-functions. -- - Changes in 2.18: - - * Linker sources now released under version 3 of the GNU General Public ---- ld/ld.texinfo.jj 2007-05-11 11:24:08.000000000 -0400 -+++ ld/ld.texinfo 2007-06-12 05:04:33.000000000 -0400 -@@ -1142,21 +1142,14 @@ When creating a shared library, bind ref - definition within the shared library, if any. Normally, it is possible - for a program linked against a shared library to override the definition - within the shared library. This option is only meaningful on ELF --platforms which support shared libraries. If @option{-Bsymbolic} is not --used when linking a shared library, the linker will also turn on this --option if the environment variable @code{LD_SYMBOLIC} is set. -+platforms which support shared libraries. - - @kindex -Bsymbolic-functions - @item -Bsymbolic-functions - When creating a shared library, bind references to global function - symbols to the definition within the shared library, if any. - This option is only meaningful on ELF platforms which support shared --libraries. If @option{-Bsymbolic-functions} is not used when linking a --shared library, the linker will also turn on this option if the --environment variable @code{LD_SYMBOLIC_FUNCTIONS} is set. When --both environment variables @code{LD_SYMBOLIC} and --@code{LD_SYMBOLIC_FUNCTIONS} are set, @code{LD_SYMBOLIC} will take --precedent. -+libraries. - - @kindex --dynamic-list=@var{dynamic-list-file} - @item --dynamic-list=@var{dynamic-list-file} ---- ld/ldmain.c.jj 2007-05-11 11:24:08.000000000 -0400 -+++ ld/ldmain.c 2007-06-12 05:05:48.000000000 -0400 -@@ -254,11 +254,6 @@ main (int argc, char **argv) - command_line.warn_search_mismatch = TRUE; - command_line.check_section_addresses = TRUE; - -- if (getenv ("LD_SYMBOLIC") != NULL) -- command_line.symbolic = symbolic; -- else if (getenv ("LD_SYMBOLIC_FUNCTIONS") != NULL) -- command_line.symbolic = symbolic_functions; -- - /* We initialize DEMANGLING based on the environment variable - COLLECT_NO_DEMANGLE. The gcc collect2 program will demangle the - output of the linker, unless COLLECT_NO_DEMANGLE is set in the diff --git a/binutils-2.18.50.0.3-version.patch b/binutils-2.18.50.0.3-version.patch deleted file mode 100644 index bec1e57..0000000 --- a/binutils-2.18.50.0.3-version.patch +++ /dev/null @@ -1,36 +0,0 @@ ---- bfd/Makefile.in.jj 2007-05-11 17:23:18.000000000 +0200 -+++ bfd/Makefile.in 2007-06-12 12:28:10.000000000 +0200 -@@ -1540,12 +1540,12 @@ bfdver.h: $(srcdir)/version.h $(srcdir)/ - report_bugs_to="\"$(REPORT_BUGS_TO)\"" ;\ - if test "x$(RELEASE)" = x ; then \ - bfd_version_date=`sed -n -e 's/.*DATE //p' < $(srcdir)/version.h` ;\ -- bfd_version_string="\"$(VERSION).$${bfd_version_date}\"" ;\ -- bfd_soversion="$(VERSION).$${bfd_version_date}" ;\ -+ bfd_version_string="\"$(VERSION)-%{release} $${bfd_version_date}\"" ;\ -+ bfd_soversion="$(VERSION)-%{release}" ;\ - fi ;\ - sed -e "s,@bfd_version@,$$bfd_version," \ - -e "s,@bfd_version_string@,$$bfd_version_string," \ -- -e "s,@bfd_version_package@,$$bfd_version_package," \ -+ -e "s,@bfd_version_package@,\"version \"," \ - -e "s,@report_bugs_to@,$$report_bugs_to," \ - < $(srcdir)/version.h > $@; \ - echo "$${bfd_soversion}" > libtool-soversion ---- bfd/Makefile.am.jj 2007-05-11 17:23:18.000000000 +0200 -+++ bfd/Makefile.am 2007-06-12 12:28:10.000000000 +0200 -@@ -973,12 +973,12 @@ bfdver.h: $(srcdir)/version.h $(srcdir)/ - report_bugs_to="\"$(REPORT_BUGS_TO)\"" ;\ - if test "x$(RELEASE)" = x ; then \ - bfd_version_date=`sed -n -e 's/.*DATE //p' < $(srcdir)/version.h` ;\ -- bfd_version_string="\"$(VERSION).$${bfd_version_date}\"" ;\ -- bfd_soversion="$(VERSION).$${bfd_version_date}" ;\ -+ bfd_version_string="\"$(VERSION)-%{release} $${bfd_version_date}\"" ;\ -+ bfd_soversion="$(VERSION)-%{release}" ;\ - fi ;\ - sed -e "s,@bfd_version@,$$bfd_version," \ - -e "s,@bfd_version_string@,$$bfd_version_string," \ -- -e "s,@bfd_version_package@,$$bfd_version_package," \ -+ -e "s,@bfd_version_package@,\"version \"," \ - -e "s,@report_bugs_to@,$$report_bugs_to," \ - < $(srcdir)/version.h > $@; \ - echo "$${bfd_soversion}" > libtool-soversion diff --git a/binutils-2.18.50.0.4-build-fixes.patch b/binutils-2.18.50.0.4-build-fixes.patch new file mode 100644 index 0000000..943ce2c --- /dev/null +++ b/binutils-2.18.50.0.4-build-fixes.patch @@ -0,0 +1,29 @@ +2006-02-14 Jakub Jelinek + +ld/testsuite/ + * ld-shared/main.c (main): Prevent warnings about unused p. + * ld-elfcomm/common1b.c (dummy1): Add __attribute__((__used__)) for + GCC 3.3+. + +--- ld/testsuite/ld-shared/main.c.jj 2001-07-11 15:48:54.000000000 +0200 ++++ ld/testsuite/ld-shared/main.c 2006-02-14 10:07:08.000000000 +0100 +@@ -40,6 +40,8 @@ main () + { + int (*p) (); + ++ p = (void *) 0; ++ (void) p; + printf ("mainvar == %d\n", mainvar); + printf ("overriddenvar == %d\n", overriddenvar); + printf ("shlibvar1 == %d\n", shlibvar1); +--- ld/testsuite/ld-elfcomm/common1b.c.jj 2003-04-15 11:38:10.000000000 +0200 ++++ ld/testsuite/ld-elfcomm/common1b.c 2006-02-14 10:11:19.000000000 +0100 +@@ -1,3 +1,7 @@ +-static char dummy1 = 'X'; ++static char dummy1 ++#if defined __GNUC__ && (__GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) ++ __attribute__((__used__)) ++#endif ++ = 'X'; + char foo1 [] = "Aligned at odd byte."; + char foo2 [4]; diff --git a/binutils-2.18.50.0.4-bz5788.patch b/binutils-2.18.50.0.4-bz5788.patch new file mode 100644 index 0000000..19030aa --- /dev/null +++ b/binutils-2.18.50.0.4-bz5788.patch @@ -0,0 +1,48 @@ +2008-02-22 H.J. Lu + + PR ld/5788 + * elflink.c (elf_create_symbuf): Correct buffer size and + position. + +--- bfd/elflink.c 20 Feb 2008 17:42:35 -0000 1.297 ++++ bfd/elflink.c 23 Feb 2008 00:02:05 -0000 1.298 +@@ -6870,7 +6870,7 @@ elf_create_symbuf (bfd_size_type symcoun + Elf_Internal_Sym **ind, **indbufend, **indbuf; + struct elf_symbuf_symbol *ssym; + struct elf_symbuf_head *ssymbuf, *ssymhead; +- bfd_size_type i, shndx_count; ++ bfd_size_type i, shndx_count, total_size; + + indbuf = bfd_malloc2 (symcount, sizeof (*indbuf)); + if (indbuf == NULL) +@@ -6890,15 +6890,16 @@ elf_create_symbuf (bfd_size_type symcoun + if (ind[0]->st_shndx != ind[1]->st_shndx) + shndx_count++; + +- ssymbuf = bfd_malloc ((shndx_count + 1) * sizeof (*ssymbuf) +- + (indbufend - indbuf) * sizeof (*ssymbuf)); ++ total_size = ((shndx_count + 1) * sizeof (*ssymbuf) ++ + (indbufend - indbuf) * sizeof (*ssym)); ++ ssymbuf = bfd_malloc (total_size); + if (ssymbuf == NULL) + { + free (indbuf); + return NULL; + } + +- ssym = (struct elf_symbuf_symbol *) (ssymbuf + shndx_count); ++ ssym = (struct elf_symbuf_symbol *) (ssymbuf + shndx_count + 1); + ssymbuf->ssym = NULL; + ssymbuf->count = shndx_count; + ssymbuf->st_shndx = 0; +@@ -6916,7 +6917,9 @@ elf_create_symbuf (bfd_size_type symcoun + ssym->st_other = (*ind)->st_other; + ssymhead->count++; + } +- BFD_ASSERT ((bfd_size_type) (ssymhead - ssymbuf) == shndx_count); ++ BFD_ASSERT ((bfd_size_type) (ssymhead - ssymbuf) == shndx_count ++ && (((bfd_hostptr_t) ssym - (bfd_hostptr_t) ssymbuf) ++ == total_size)); + + free (indbuf); + return ssymbuf; diff --git a/binutils-2.18.50.0.4-ia64-lib64.patch b/binutils-2.18.50.0.4-ia64-lib64.patch new file mode 100644 index 0000000..def9ea9 --- /dev/null +++ b/binutils-2.18.50.0.4-ia64-lib64.patch @@ -0,0 +1,36 @@ +2004-05-14 Jakub Jelinek + + * emulparams/elf64_ia64.sh (LIBPATH_SUFFIX): Use */lib64 paths on + ia64-linux if /lib64 tree is present. + +--- ld/emulparams/elf64_ia64.sh.jj 2004-02-18 20:06:03.000000000 +0100 ++++ ld/emulparams/elf64_ia64.sh 2004-05-14 10:11:22.992278608 +0200 +@@ -37,3 +37,13 @@ OTHER_READONLY_SECTIONS="${OTHER_READONL + # .dtors. They have to be next to .sbss/.sbss2/.sdata/.sdata2. + SMALL_DATA_CTOR=" " + SMALL_DATA_DTOR=" " ++ ++# Linux modify the default library search path to first include ++# a 64-bit specific directory. ++case "$target" in ++ ia64*-linux*) ++ case "$EMULATION_NAME" in ++ *64*) test -d /lib64 && LIBPATH_SUFFIX=64 ;; ++ esac ++ ;; ++esac +--- ltconfig 2003-02-03 16:56:49.000000000 +0900 ++++ ltconfig 2003-02-03 16:56:49.000000000 +0900 +@@ -1240,10 +1240,10 @@ + + # Find out which ABI we are using (multilib hack). + case "$host_cpu" in +- x86_64*|s390*|sparc*|ppc*|powerpc*) ++ x86_64*|s390*|sparc*|ppc*|powerpc*|ia64) + echo "$progname:@lineno@: checking multilib ABI type" 1>&5 + touch conftest.$ac_ext +- if { (eval echo $progname: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then ++ if test -d /lib64 && { (eval echo $progname: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then + case `/usr/bin/file conftest.o` in + *64-bit*) + sys_lib_dlsearch_path_spec="/lib64 /usr/lib64" diff --git a/binutils-2.18.50.0.4-ltconfig-multilib.patch b/binutils-2.18.50.0.4-ltconfig-multilib.patch new file mode 100644 index 0000000..5b302c3 --- /dev/null +++ b/binutils-2.18.50.0.4-ltconfig-multilib.patch @@ -0,0 +1,262 @@ +--- binutils/configure.jj 2007-06-18 13:29:28.000000000 -0400 ++++ binutils/configure 2007-06-27 13:55:07.000000000 -0400 +@@ -8990,10 +8990,34 @@ rm -f conftest.err conftest.$ac_objext \ + # before this can be enabled. + hardcode_into_libs=yes + ++ # find out which ABI we are using ++ libsuff= ++ case "$host_cpu" in ++ x86_64*|s390*|powerpc*|ppc*|sparc*) ++ echo 'int i;' > conftest.$ac_ext ++ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ++ (eval $ac_compile) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ case `/usr/bin/file conftest.$ac_objext` in ++ *64-bit*) ++ libsuff=64 ++ if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then ++ sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" ++ fi ++ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" ++ ;; ++ esac ++ fi ++ rm -rf conftest* ++ ;; ++ esac ++ + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` +- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" ++ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on +--- opcodes/configure.jj 2007-06-18 13:29:29.000000000 -0400 ++++ opcodes/configure 2007-06-27 13:55:08.000000000 -0400 +@@ -8420,10 +8420,34 @@ rm -f conftest.err conftest.$ac_objext \ + # before this can be enabled. + hardcode_into_libs=yes + ++ # find out which ABI we are using ++ libsuff= ++ case "$host_cpu" in ++ x86_64*|s390*|powerpc*|ppc*|sparc*) ++ echo 'int i;' > conftest.$ac_ext ++ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ++ (eval $ac_compile) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ case `/usr/bin/file conftest.$ac_objext` in ++ *64-bit*) ++ libsuff=64 ++ if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then ++ sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" ++ fi ++ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" ++ ;; ++ esac ++ fi ++ rm -rf conftest* ++ ;; ++ esac ++ + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` +- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" ++ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on +--- gprof/configure.jj 2007-06-18 13:29:29.000000000 -0400 ++++ gprof/configure 2007-06-27 13:55:08.000000000 -0400 +@@ -8250,10 +8250,34 @@ rm -f conftest.err conftest.$ac_objext \ + # before this can be enabled. + hardcode_into_libs=yes + ++ # find out which ABI we are using ++ libsuff= ++ case "$host_cpu" in ++ x86_64*|s390*|powerpc*|ppc*|sparc*) ++ echo 'int i;' > conftest.$ac_ext ++ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ++ (eval $ac_compile) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ case `/usr/bin/file conftest.$ac_objext` in ++ *64-bit*) ++ libsuff=64 ++ if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then ++ sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" ++ fi ++ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" ++ ;; ++ esac ++ fi ++ rm -rf conftest* ++ ;; ++ esac ++ + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` +- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" ++ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on +--- ld/configure.jj 2007-06-18 13:29:29.000000000 -0400 ++++ ld/configure 2007-06-27 13:55:08.000000000 -0400 +@@ -8253,10 +8253,34 @@ rm -f conftest.err conftest.$ac_objext \ + # before this can be enabled. + hardcode_into_libs=yes + ++ # find out which ABI we are using ++ libsuff= ++ case "$host_cpu" in ++ x86_64*|s390*|powerpc*|ppc*|sparc*) ++ echo 'int i;' > conftest.$ac_ext ++ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ++ (eval $ac_compile) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ case `/usr/bin/file conftest.$ac_objext` in ++ *64-bit*) ++ libsuff=64 ++ if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then ++ sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" ++ fi ++ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" ++ ;; ++ esac ++ fi ++ rm -rf conftest* ++ ;; ++ esac ++ + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` +- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" ++ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on +--- gas/configure.jj 2007-06-18 13:29:28.000000000 -0400 ++++ gas/configure 2007-06-27 13:55:08.000000000 -0400 +@@ -8252,10 +8252,34 @@ rm -f conftest.err conftest.$ac_objext \ + # before this can be enabled. + hardcode_into_libs=yes + ++ # find out which ABI we are using ++ libsuff= ++ case "$host_cpu" in ++ x86_64*|s390*|powerpc*|ppc*|sparc*) ++ echo 'int i;' > conftest.$ac_ext ++ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ++ (eval $ac_compile) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ case `/usr/bin/file conftest.$ac_objext` in ++ *64-bit*) ++ libsuff=64 ++ if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then ++ sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" ++ fi ++ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" ++ ;; ++ esac ++ fi ++ rm -rf conftest* ++ ;; ++ esac ++ + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` +- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" ++ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on +--- bfd/configure.jj 2007-06-18 13:29:28.000000000 -0400 ++++ bfd/configure 2007-06-27 13:55:08.000000000 -0400 +@@ -9156,10 +9156,34 @@ rm -f conftest.err conftest.$ac_objext \ + # before this can be enabled. + hardcode_into_libs=yes + ++ # find out which ABI we are using ++ libsuff= ++ case "$host_cpu" in ++ x86_64*|s390*|powerpc*|ppc*|sparc*) ++ echo 'int i;' > conftest.$ac_ext ++ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ++ (eval $ac_compile) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ case `/usr/bin/file conftest.$ac_objext` in ++ *64-bit*) ++ libsuff=64 ++ if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then ++ sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" ++ fi ++ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" ++ ;; ++ esac ++ fi ++ rm -rf conftest* ++ ;; ++ esac ++ + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` +- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" ++ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on +--- libtool.m4.jj 2007-06-18 13:29:28.000000000 -0400 ++++ libtool.m4 2007-06-27 13:55:08.000000000 -0400 +@@ -2337,10 +2337,30 @@ linux* | k*bsd*-gnu) + # before this can be enabled. + hardcode_into_libs=yes + ++ # find out which ABI we are using ++ libsuff= ++ case "$host_cpu" in ++ x86_64*|s390*|powerpc*|ppc*|sparc*) ++ echo 'int i;' > conftest.$ac_ext ++ if AC_TRY_EVAL(ac_compile); then ++ case `/usr/bin/file conftest.$ac_objext` in ++ *64-bit*) ++ libsuff=64 ++ if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then ++ sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" ++ fi ++ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" ++ ;; ++ esac ++ fi ++ rm -rf conftest* ++ ;; ++ esac ++ + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` +- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" ++ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on diff --git a/binutils-2.18.50.0.4-place-orphan.patch b/binutils-2.18.50.0.4-place-orphan.patch new file mode 100644 index 0000000..ae7c001 --- /dev/null +++ b/binutils-2.18.50.0.4-place-orphan.patch @@ -0,0 +1,16 @@ +2003-08-05 Jakub Jelinek + + * emulparams/elf64ppc.sh (OTHER_GOT_RELOC_SECTIONS): Add .rela.opd. + +--- ld/emulparams/elf64ppc.sh.jj 2003-07-28 10:24:45.000000000 -0400 ++++ ld/emulparams/elf64ppc.sh 2003-08-05 08:35:58.000000000 -0400 +@@ -28,7 +28,8 @@ else + .toc 0 : { *(.toc) }" + fi + OTHER_GOT_RELOC_SECTIONS=" +- .rela.toc ${RELOCATING-0} : { *(.rela.toc) }" ++ .rela.toc ${RELOCATING-0} : { *(.rela.toc) } ++ .rela.opd ${RELOCATING-0} : { *(.rela.opd) }" + OTHER_READWRITE_SECTIONS=" + .toc1 ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { *(.toc1) } + .opd ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { KEEP (*(.opd)) }" diff --git a/binutils-2.18.50.0.4-ppc64-pie.patch b/binutils-2.18.50.0.4-ppc64-pie.patch new file mode 100644 index 0000000..879ea91 --- /dev/null +++ b/binutils-2.18.50.0.4-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/binutils-2.18.50.0.4-symbolic-envvar-revert.patch b/binutils-2.18.50.0.4-symbolic-envvar-revert.patch new file mode 100644 index 0000000..9ed4170 --- /dev/null +++ b/binutils-2.18.50.0.4-symbolic-envvar-revert.patch @@ -0,0 +1,50 @@ +--- ld/NEWS.jj 2007-05-11 11:24:08.000000000 -0400 ++++ ld/NEWS 2007-06-12 05:04:49.000000000 -0400 +@@ -1,7 +1,4 @@ + -*- text -*- +-* ELF: Support environment variables, LD_SYMBOLIC for -Bsymbolic and +- LD_SYMBOLIC_FUNCTIONS for -Bsymbolic-functions. +- + Changes in 2.18: + + * Linker sources now released under version 3 of the GNU General Public +--- ld/ld.texinfo.jj 2007-05-11 11:24:08.000000000 -0400 ++++ ld/ld.texinfo 2007-06-12 05:04:33.000000000 -0400 +@@ -1142,21 +1142,14 @@ When creating a shared library, bind ref + definition within the shared library, if any. Normally, it is possible + for a program linked against a shared library to override the definition + within the shared library. This option is only meaningful on ELF +-platforms which support shared libraries. If @option{-Bsymbolic} is not +-used when linking a shared library, the linker will also turn on this +-option if the environment variable @code{LD_SYMBOLIC} is set. ++platforms which support shared libraries. + + @kindex -Bsymbolic-functions + @item -Bsymbolic-functions + When creating a shared library, bind references to global function + symbols to the definition within the shared library, if any. + This option is only meaningful on ELF platforms which support shared +-libraries. If @option{-Bsymbolic-functions} is not used when linking a +-shared library, the linker will also turn on this option if the +-environment variable @code{LD_SYMBOLIC_FUNCTIONS} is set. When +-both environment variables @code{LD_SYMBOLIC} and +-@code{LD_SYMBOLIC_FUNCTIONS} are set, @code{LD_SYMBOLIC} will take +-precedent. ++libraries. + + @kindex --dynamic-list=@var{dynamic-list-file} + @item --dynamic-list=@var{dynamic-list-file} +--- ld/ldmain.c.jj 2007-05-11 11:24:08.000000000 -0400 ++++ ld/ldmain.c 2007-06-12 05:05:48.000000000 -0400 +@@ -254,11 +254,6 @@ main (int argc, char **argv) + command_line.warn_search_mismatch = TRUE; + command_line.check_section_addresses = TRUE; + +- if (getenv ("LD_SYMBOLIC") != NULL) +- command_line.symbolic = symbolic; +- else if (getenv ("LD_SYMBOLIC_FUNCTIONS") != NULL) +- command_line.symbolic = symbolic_functions; +- + /* We initialize DEMANGLING based on the environment variable + COLLECT_NO_DEMANGLE. The gcc collect2 program will demangle the + output of the linker, unless COLLECT_NO_DEMANGLE is set in the diff --git a/binutils-2.18.50.0.4-version.patch b/binutils-2.18.50.0.4-version.patch new file mode 100644 index 0000000..bec1e57 --- /dev/null +++ b/binutils-2.18.50.0.4-version.patch @@ -0,0 +1,36 @@ +--- bfd/Makefile.in.jj 2007-05-11 17:23:18.000000000 +0200 ++++ bfd/Makefile.in 2007-06-12 12:28:10.000000000 +0200 +@@ -1540,12 +1540,12 @@ bfdver.h: $(srcdir)/version.h $(srcdir)/ + report_bugs_to="\"$(REPORT_BUGS_TO)\"" ;\ + if test "x$(RELEASE)" = x ; then \ + bfd_version_date=`sed -n -e 's/.*DATE //p' < $(srcdir)/version.h` ;\ +- bfd_version_string="\"$(VERSION).$${bfd_version_date}\"" ;\ +- bfd_soversion="$(VERSION).$${bfd_version_date}" ;\ ++ bfd_version_string="\"$(VERSION)-%{release} $${bfd_version_date}\"" ;\ ++ bfd_soversion="$(VERSION)-%{release}" ;\ + fi ;\ + sed -e "s,@bfd_version@,$$bfd_version," \ + -e "s,@bfd_version_string@,$$bfd_version_string," \ +- -e "s,@bfd_version_package@,$$bfd_version_package," \ ++ -e "s,@bfd_version_package@,\"version \"," \ + -e "s,@report_bugs_to@,$$report_bugs_to," \ + < $(srcdir)/version.h > $@; \ + echo "$${bfd_soversion}" > libtool-soversion +--- bfd/Makefile.am.jj 2007-05-11 17:23:18.000000000 +0200 ++++ bfd/Makefile.am 2007-06-12 12:28:10.000000000 +0200 +@@ -973,12 +973,12 @@ bfdver.h: $(srcdir)/version.h $(srcdir)/ + report_bugs_to="\"$(REPORT_BUGS_TO)\"" ;\ + if test "x$(RELEASE)" = x ; then \ + bfd_version_date=`sed -n -e 's/.*DATE //p' < $(srcdir)/version.h` ;\ +- bfd_version_string="\"$(VERSION).$${bfd_version_date}\"" ;\ +- bfd_soversion="$(VERSION).$${bfd_version_date}" ;\ ++ bfd_version_string="\"$(VERSION)-%{release} $${bfd_version_date}\"" ;\ ++ bfd_soversion="$(VERSION)-%{release}" ;\ + fi ;\ + sed -e "s,@bfd_version@,$$bfd_version," \ + -e "s,@bfd_version_string@,$$bfd_version_string," \ +- -e "s,@bfd_version_package@,$$bfd_version_package," \ ++ -e "s,@bfd_version_package@,\"version \"," \ + -e "s,@report_bugs_to@,$$report_bugs_to," \ + < $(srcdir)/version.h > $@; \ + echo "$${bfd_soversion}" > libtool-soversion diff --git a/binutils.spec b/binutils.spec index 01fb20a..e8bce2e 100644 --- a/binutils.spec +++ b/binutils.spec @@ -1,18 +1,19 @@ Summary: A GNU collection of binary utilities. Name: binutils -Version: 2.18.50.0.3 -Release: 2 +Version: 2.18.50.0.4 +Release: 1 License: GPLv3+ Group: Development/Tools URL: http://sources.redhat.com/binutils Source: ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2 -Patch1: binutils-2.18.50.0.3-ltconfig-multilib.patch -Patch2: binutils-2.18.50.0.3-ppc64-pie.patch -Patch3: binutils-2.18.50.0.3-place-orphan.patch -Patch4: binutils-2.18.50.0.3-ia64-lib64.patch -Patch5: binutils-2.18.50.0.3-build-fixes.patch -Patch6: binutils-2.18.50.0.3-symbolic-envvar-revert.patch -Patch7: binutils-2.18.50.0.3-version.patch +Patch1: binutils-2.18.50.0.4-ltconfig-multilib.patch +Patch2: binutils-2.18.50.0.4-ppc64-pie.patch +Patch3: binutils-2.18.50.0.4-place-orphan.patch +Patch4: binutils-2.18.50.0.4-ia64-lib64.patch +Patch5: binutils-2.18.50.0.4-build-fixes.patch +Patch6: binutils-2.18.50.0.4-symbolic-envvar-revert.patch +Patch7: binutils-2.18.50.0.4-version.patch +Patch8: binutils-2.18.50.0.4-bz5788.patch Buildroot: %{_tmppath}/binutils-root BuildRequires: texinfo >= 4.0, dejagnu, gettext, flex, bison @@ -65,6 +66,7 @@ to consider using libelf instead of BFD. %patch5 -p0 -b .build-fixes~ %patch6 -p0 -b .symbolic-envvar-revert~ %patch7 -p0 -b .version~ +%patch8 -p0 -b .bz5788~ # On ppc64 we might use 64K pages sed -i -e '/#define.*ELF_COMMONPAGESIZE/s/0x1000$/0x10000/' bfd/elf*ppc.c @@ -215,7 +217,10 @@ fi %{_infodir}/bfd*info* %changelog -* Tue Feb 19 2008 Fedora Release Engineering - 2.18.50.0.3-2 +* Fri Feb 29 2008 Jakub Jelinek 2.18.50.0.4-1 +- update to 2.18.50.0.4 + +* Tue Feb 19 2008 Fedora Release Engineering 2.18.50.0.3-2 - Autorebuild for GCC 4.3 * Wed Dec 12 2007 Jakub Jelinek 2.18.50.0.3-1 diff --git a/sources b/sources index 6c9f732..e670481 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -4e0692b6ff63d51b7ae3529fabe290ce binutils-2.18.50.0.3.tar.bz2 +163ca01262dc530f7bf8e83bc43e65ab binutils-2.18.50.0.4.tar.bz2