]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - binutils/patches/binutils-2.24-indirect-chain.patch0
binutils: Update to 2.24
[people/ms/ipfire-3.x.git] / binutils / patches / binutils-2.24-indirect-chain.patch0
CommitLineData
602900c1
MT
1*** ../binutils-2.24.orig/bfd/elflink.c 2014-08-21 09:17:27.753408085 +0100
2--- bfd/elflink.c 2014-08-21 10:04:52.174935912 +0100
3*************** _bfd_elf_add_default_symbol (bfd *abfd,
4*** 1705,1710 ****
5--- 1705,1716 ----
6 ht = (struct elf_link_hash_entry *) hi->root.u.i.link;
7 (*bed->elf_backend_copy_indirect_symbol) (info, ht, hi);
8
9+ /* A reference to the SHORTNAME symbol from a dynamic library
10+ will be satisfied by the versioned symbol at runtime. In
11+ effect, we have a reference to the versioned symbol. */
12+ ht->ref_dynamic_nonweak |= hi->ref_dynamic_nonweak;
13+ hi->dynamic_def |= ht->dynamic_def;
14+
15 /* See if the new flags lead us to realize that the symbol must
16 be dynamic. */
17 if (! *dynsym)
18*************** nondefault:
19*** 1774,1779 ****
20--- 1780,1787 ----
21 if (hi->root.type == bfd_link_hash_indirect)
22 {
23 (*bed->elf_backend_copy_indirect_symbol) (info, h, hi);
24+ h->ref_dynamic_nonweak |= hi->ref_dynamic_nonweak;
25+ hi->dynamic_def |= h->dynamic_def;
26
27 /* See if the new flags lead us to realize that the symbol
28 must be dynamic. */