From: Jakub Jelinek Date: Fri, 7 Feb 2003 09:30:33 +0000 (+0000) Subject: * elf64-alpha.c (elf64_alpha_relax_section): Don't crash if X-Git-Tag: binutils-2_14-branchpoint~908 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c328dc3fe7ad85ba309ad6768797b384e7fba8e9;p=thirdparty%2Fbinutils-gdb.git * elf64-alpha.c (elf64_alpha_relax_section): Don't crash if local_got_entries is NULL. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f802abf45ba..6d96a71d842 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2003-02-07 Jakub Jelinek + + * elf64-alpha.c (elf64_alpha_relax_section): Don't crash if + local_got_entries is NULL. + 2003-02-06 Andreas Schwab * elf-eh-frame.c (get_DW_EH_PE_signed): Define. diff --git a/bfd/elf64-alpha.c b/bfd/elf64-alpha.c index 3c5df032443..aa592fae17d 100644 --- a/bfd/elf64-alpha.c +++ b/bfd/elf64-alpha.c @@ -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 {