Remove an accidental change to elfcode.h included as part of commit 6e0dfbf420.
authorNick Clifton <nickc@redhat.com>
Wed, 7 Jul 2021 15:50:33 +0000 (16:50 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 7 Jul 2021 15:50:33 +0000 (16:50 +0100)
PR 27659
* elfcode.h (elf_swap_symbol_out): Revert accidental change that
removed an abort if the shndx pointer is NULL.

bfd/ChangeLog
bfd/elfcode.h

index e0cb2bfd291e91672cb256b886d3c08f105f489b..25bb16315a9eddda6323c839c9090ba3a4cbec88 100644 (file)
@@ -1,3 +1,8 @@
+2021-07-07  Nick Clifton  <nickc@redhat.com>
+
+       * elfcode.h (elf_swap_symbol_out): Revert accidental change that
+       removed an abort if the shndx pointer is NULL.
+
 2021-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
        * sysdep.h [!ENABLE_NLS]: Prevent inclusion of <libintl.h> on
index 0f5156fbe1bcff50f7e42290edc7b34d2d04c981..7eb27c2e16dcba32da8e0b0396fdd25c7be313d6 100644 (file)
@@ -221,9 +221,8 @@ elf_swap_symbol_out (bfd *abfd,
   if (tmp >= (SHN_LORESERVE & 0xffff) && tmp < SHN_LORESERVE)
     {
       if (shndx == NULL)
-       H_PUT_32 (abfd, tmp, 0);
-      else
-       H_PUT_32 (abfd, tmp, shndx);
+       abort ();
+      H_PUT_32 (abfd, tmp, shndx);
       tmp = SHN_XINDEX & 0xffff;
     }
   H_PUT_16 (abfd, tmp, dst->st_shndx);