From c328dc3fe7ad85ba309ad6768797b384e7fba8e9 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 7 Feb 2003 09:30:33 +0000 Subject: * elf64-alpha.c (elf64_alpha_relax_section): Don't crash if local_got_entries is NULL. --- bfd/elf64-alpha.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'bfd/elf64-alpha.c') diff --git a/bfd/elf64-alpha.c b/bfd/elf64-alpha.c index 3c5df03..aa592fa 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 { -- cgit v1.1