1.1 --- a/patches/binutils/2.19.1/100-ppc64-pie.patch Sun Sep 11 18:26:12 2011 +0200
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,25 +0,0 @@
1.4 -Original patch from: ../crosstool-NG/ct-ng.trunk/patches/binutils/2.19/100-ppc64-pie.patch
1.5 -
1.6 --= BEGIN original header =-
1.7 -Original patch from Gentoo:
1.8 -gentoo/src/patchsets/binutils/2.19/03_all_binutils-2.15.92.0.2-ppc64-pie.patch
1.9 -
1.10 --= END original header =-
1.11 -
1.12 -diff -durN binutils-2.19.1.orig/bfd/elf64-ppc.c binutils-2.19.1/bfd/elf64-ppc.c
1.13 ---- binutils-2.19.1.orig/bfd/elf64-ppc.c 2008-10-09 14:18:24.000000000 +0200
1.14 -+++ binutils-2.19.1/bfd/elf64-ppc.c 2009-03-08 11:56:59.000000000 +0100
1.15 -@@ -11294,7 +11294,12 @@
1.16 - else if (!SYMBOL_REFERENCES_LOCAL (info, &h->elf)
1.17 - && !is_opd
1.18 - && r_type != R_PPC64_TOC)
1.19 -- outrel.r_info = ELF64_R_INFO (h->elf.dynindx, r_type);
1.20 -+ {
1.21 -+ outrel.r_info = ELF64_R_INFO (h->elf.dynindx, r_type);
1.22 -+ if (h->elf.dynindx == -1
1.23 -+ && h->elf.root.type == bfd_link_hash_undefweak)
1.24 -+ memset (&outrel, 0, sizeof outrel);
1.25 -+ }
1.26 - else
1.27 - {
1.28 - /* This symbol is local, or marked to become local,