more cleanup in toolchain/
[openwrt.git] / openwrt / toolchain / binutils / 2.16.90.0.1 / 300-120_mips_xgot_multigot_workaround.patch
1 #! /bin/sh -e
2 ## 120_mips_xgot_multigot_workaround.dpatch
3 ##
4 ## DP: Description: Make multigot/xgot handling mutually exclusive.
5 ## DP: Author: Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6 ## DP: Upstream status: Not submitted
7 ## DP: Date: 2004-09-17
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 -urNad /home/james/debian/packages/binutils/binutils-2.15/bfd/elfxx-mips.c binutils-2.15/bfd/elfxx-mips.c
29 --- /home/james/debian/packages/binutils/binutils-2.15/bfd/elfxx-mips.c 2004-09-23 22:41:37.156466673 +0100
30 +++ binutils-2.15/bfd/elfxx-mips.c 2004-09-23 22:42:15.998362861 +0100
31 @@ -6594,7 +6594,9 @@
32
33 mips_elf_resolve_final_got_entries (g);
34
35 - if (s->size > MIPS_ELF_GOT_MAX_SIZE (output_bfd))
36 + if (s->size > MIPS_ELF_GOT_MAX_SIZE (output_bfd)
37 + && g->global_gotno <= (MIPS_ELF_GOT_MAX_SIZE (output_bfd)
38 + / MIPS_ELF_GOT_SIZE (output_bfd)))
39 {
40 if (! mips_elf_multi_got (output_bfd, info, g, s, local_gotno))
41 return FALSE;
This page took 0.043195 seconds and 5 git commands to generate.