* elfxx-mips.c (_bfd_mips_elf_hide_symbol): Test for NULL dynobj.

This commit is contained in:
Alan Modra 2003-04-01 23:44:45 +00:00
parent 3126d709ed
commit c45a316a0b
2 changed files with 51 additions and 44 deletions

View file

@ -1,3 +1,7 @@
2003-04-02 Alan Modra <amodra@bigpond.net.au>
* elfxx-mips.c (_bfd_mips_elf_hide_symbol): Test for NULL dynobj.
2003-04-01 Bob Wilson <bob.wilson@acm.org>
* Makefile.am (ALL_MACHINES): Add cpu-xtensa.lo.

View file

@ -7716,6 +7716,8 @@ _bfd_mips_elf_hide_symbol (info, entry, force_local)
h->forced_local = TRUE;
dynobj = elf_hash_table (info)->dynobj;
if (dynobj != NULL)
{
got = mips_elf_got_section (dynobj, FALSE);
g = mips_elf_section_data (got)->u.got_info;
@ -7765,6 +7767,7 @@ _bfd_mips_elf_hide_symbol (info, entry, force_local)
g->local_gotno++;
g->global_gotno--;
}
}
_bfd_elf_link_hash_hide_symbol (info, &h->root, force_local);
}