forked from Imagelibrary/binutils-gdb
tidy _bfd_elf_define_linkage_sym
* elflink.c (_bfd_elf_define_linkage_sym): Set 'bed' earlier.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2015-02-19 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* elflink.c (_bfd_elf_define_linkage_sym): Set 'bed' earlier.
|
||||||
|
|
||||||
2015-02-19 Alan Modra <amodra@gmail.com>
|
2015-02-19 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
PR ld/4317
|
PR ld/4317
|
||||||
|
|||||||
@@ -77,9 +77,9 @@ _bfd_elf_define_linkage_sym (bfd *abfd,
|
|||||||
}
|
}
|
||||||
|
|
||||||
bh = &h->root;
|
bh = &h->root;
|
||||||
|
bed = get_elf_backend_data (abfd);
|
||||||
if (!_bfd_generic_link_add_one_symbol (info, abfd, name, BSF_GLOBAL,
|
if (!_bfd_generic_link_add_one_symbol (info, abfd, name, BSF_GLOBAL,
|
||||||
sec, 0, NULL, FALSE,
|
sec, 0, NULL, FALSE, bed->collect,
|
||||||
get_elf_backend_data (abfd)->collect,
|
|
||||||
&bh))
|
&bh))
|
||||||
return NULL;
|
return NULL;
|
||||||
h = (struct elf_link_hash_entry *) bh;
|
h = (struct elf_link_hash_entry *) bh;
|
||||||
@@ -90,7 +90,6 @@ _bfd_elf_define_linkage_sym (bfd *abfd,
|
|||||||
if (ELF_ST_VISIBILITY (h->other) != STV_INTERNAL)
|
if (ELF_ST_VISIBILITY (h->other) != STV_INTERNAL)
|
||||||
h->other = (h->other & ~ELF_ST_VISIBILITY (-1)) | STV_HIDDEN;
|
h->other = (h->other & ~ELF_ST_VISIBILITY (-1)) | STV_HIDDEN;
|
||||||
|
|
||||||
bed = get_elf_backend_data (abfd);
|
|
||||||
(*bed->elf_backend_hide_symbol) (info, h, TRUE);
|
(*bed->elf_backend_hide_symbol) (info, h, TRUE);
|
||||||
return h;
|
return h;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user