* elf64-alpha.c (elf64_alpha_relax_section): Don't crash if

local_got_entries is NULL.
This commit is contained in:
Jakub Jelinek 2003-02-07 09:30:33 +00:00
parent b8a92b826d
commit c328dc3fe7
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-02-07 Jakub Jelinek <jakub@redhat.com>
* elf64-alpha.c (elf64_alpha_relax_section): Don't crash if
local_got_entries is NULL.
2003-02-06 Andreas Schwab <schwab@suse.de>
* elf-eh-frame.c (get_DW_EH_PE_signed): Define.

View File

@ -2184,7 +2184,13 @@ elf64_alpha_relax_section (abfd, sec, link_info, again)
info.h = NULL;
info.other = isym->st_other;
info.first_gotent = &local_got_entries[r_symndx];
if (local_got_entries)
info.first_gotent = &local_got_entries[r_symndx];
else
{
info.first_gotent = &info.gotent;
info.gotent = NULL;
}
}
else
{