mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
2001-06-29 H.J. Lu <hjl@gnu.org>
* elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if hplink->sgot is NULL before filling GOT. Checck if hplink->splt is NULL before filling PLT.
This commit is contained in:
parent
18ea51df51
commit
b64977c5ff
@ -1,3 +1,9 @@
|
||||
2001-06-29 H.J. Lu <hjl@gnu.org>
|
||||
|
||||
* elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
|
||||
hplink->sgot is NULL before filling GOT. Checck if hplink->splt
|
||||
is NULL before filling PLT.
|
||||
|
||||
2001-06-29 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* elflink.h (elf_link_output_extsym): Revert 1999-04-10.
|
||||
|
@ -4334,7 +4334,7 @@ elf32_hppa_finish_dynamic_sections (output_bfd, info)
|
||||
}
|
||||
}
|
||||
|
||||
if (hplink->sgot->_raw_size != 0)
|
||||
if (hplink->sgot != NULL && hplink->sgot->_raw_size != 0)
|
||||
{
|
||||
/* Fill in the first entry in the global offset table.
|
||||
We use it to point to our dynamic section, if we have one. */
|
||||
@ -4352,7 +4352,7 @@ elf32_hppa_finish_dynamic_sections (output_bfd, info)
|
||||
->this_hdr.sh_entsize = GOT_ENTRY_SIZE;
|
||||
}
|
||||
|
||||
if (hplink->splt->_raw_size != 0)
|
||||
if (hplink->splt != NULL && hplink->splt->_raw_size != 0)
|
||||
{
|
||||
/* Set plt entry size. */
|
||||
elf_section_data (hplink->splt->output_section)
|
||||
|
Loading…
Reference in New Issue
Block a user