optimize for size
[openwrt.git] / openwrt / toolchain / binutils / 2.15.92.0.2 / 300-117_mips_symbolic_link.patch
1 #! /bin/sh -e
2 ## 117_mips_symbolic_link.dpatch
3 ##
4 ## DP: Description: Handle symbolic multigot links. (#270619)
5 ## DP: Author: Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6 ## DP: Upstream status: Not submitted
7 ## DP: Date: 2004-09-08
8
9 if [ $# -lt 1 ]; then
10 echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
11 exit 1
12 fi
13
14 [ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
15 patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
16
17 case "$1" in
18 -patch) patch -p1 ${patch_opts} < $0;;
19 -unpatch) patch -R -p1 ${patch_opts} < $0;;
20 *)
21 echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
22 exit 1;;
23 esac
24
25 exit 0
26
27 @DPATCH@
28 diff -urpN binutils-2.15.orig/bfd/elfxx-mips.c binutils-2.15/bfd/elfxx-mips.c
29 --- binutils-2.15.orig/bfd/elfxx-mips.c 2004-05-17 21:36:03.000000000 +0200
30 +++ binutils-2.15/bfd/elfxx-mips.c 2004-08-29 08:48:22.000000000 +0200
31 @@ -3909,10 +3910,7 @@ mips_elf_create_dynamic_relocation (bfd
32 /* We must now calculate the dynamic symbol table index to use
33 in the relocation. */
34 if (h != NULL
35 - && (! info->symbolic || !h->root.def_regular)
36 - /* h->root.dynindx may be -1 if this symbol was marked to
37 - become local. */
38 - && h->root.dynindx != -1)
39 + && (!h->root.def_regular || !h->root.forced_local))
40 {
41 indx = h->root.dynindx;
42 if (SGI_COMPAT (output_bfd))
This page took 0.044021 seconds and 5 git commands to generate.