mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-09 23:32:21 +08:00
bfd/
* elf32-cris.c (elf_cris_adjust_gotplt_to_got): Move assert later. * elfxx-mips.c (_bfd_mips_elf_hide_symbol): Cope with being called without any got section. ld/testsuite/ * ld-alpha/tlsbin.rd: Update. * ld-alpha/tlsbinr.rd: Update. * ld-cris/locref1.d: Update. * ld-cris/locref2.d: Update. * ld-i386/tlsbin.rd: Update. * ld-ia64/tlsbin.rd: Update. * ld-powerpc/tlsexe.r: Update. * ld-powerpc/tlsexe32.r: Update. * ld-powerpc/tlsexetoc.r: Update. * ld-s390/tlsbin.rd: Update. * ld-s390/tlsbin_64.rd: Update. * ld-sparc/tlssunbin32.rd: Update. * ld-sparc/tlssunbin64.rd: Update. * ld-x86-64/tlsbin.rd: Update.
This commit is contained in:
@ -2078,9 +2078,6 @@ elf_cris_adjust_gotplt_to_got (h, p)
|
||||
PTR p;
|
||||
{
|
||||
struct bfd_link_info *info = (struct bfd_link_info *) p;
|
||||
bfd *dynobj = elf_hash_table (info)->dynobj;
|
||||
|
||||
BFD_ASSERT (dynobj != NULL);
|
||||
|
||||
if (h->root.root.type == bfd_link_hash_warning)
|
||||
h = (struct elf_cris_link_hash_entry *) h->root.root.u.i.link;
|
||||
@ -2100,9 +2097,13 @@ elf_cris_adjust_gotplt_to_got (h, p)
|
||||
else
|
||||
{
|
||||
/* No GOT entry for this symbol. We need to create one. */
|
||||
asection *sgot = bfd_get_section_by_name (dynobj, ".got");
|
||||
asection *srelgot
|
||||
= bfd_get_section_by_name (dynobj, ".rela.got");
|
||||
bfd *dynobj = elf_hash_table (info)->dynobj;
|
||||
asection *sgot;
|
||||
asection *srelgot;
|
||||
|
||||
BFD_ASSERT (dynobj != NULL);
|
||||
sgot = bfd_get_section_by_name (dynobj, ".got");
|
||||
srelgot = bfd_get_section_by_name (dynobj, ".rela.got");
|
||||
|
||||
/* Put an accurate refcount there. */
|
||||
h->root.got.refcount = h->gotplt_refcount;
|
||||
|
Reference in New Issue
Block a user