]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* elf64-alpha.c (elf64_alpha_relax_section): Don't crash if
authorJakub Jelinek <jakub@redhat.com>
Fri, 7 Feb 2003 09:30:33 +0000 (09:30 +0000)
committerJakub Jelinek <jakub@redhat.com>
Fri, 7 Feb 2003 09:30:33 +0000 (09:30 +0000)
local_got_entries is NULL.

bfd/ChangeLog
bfd/elf64-alpha.c

index f802abf45ba1c72d89088a6265cb8cb102d6dc00..6d96a71d842715e606dd256c1241bd4bc3ef6b44 100644 (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.
index 3c5df032443298401bc5af22a355e1ce320fdca8..aa592fae17dd350552518495947d7c45cc2b201b 100644 (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
        {