aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-alpha.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2003-02-07 09:30:33 +0000
committerJakub Jelinek <jakub@redhat.com>2003-02-07 09:30:33 +0000
commitc328dc3fe7ad85ba309ad6768797b384e7fba8e9 (patch)
tree4cb0332818ecd13f562f18b8086940050ed2cf2b /bfd/elf64-alpha.c
parentb8a92b826d922749ff9648acb5812bcd415c7eb5 (diff)
downloadgdb-c328dc3fe7ad85ba309ad6768797b384e7fba8e9.zip
gdb-c328dc3fe7ad85ba309ad6768797b384e7fba8e9.tar.gz
gdb-c328dc3fe7ad85ba309ad6768797b384e7fba8e9.tar.bz2
* elf64-alpha.c (elf64_alpha_relax_section): Don't crash if
local_got_entries is NULL.
Diffstat (limited to 'bfd/elf64-alpha.c')
-rw-r--r--bfd/elf64-alpha.c8
1 files changed, 7 insertions, 1 deletions
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
{