diff options
author | Nick Clifton <nickc@redhat.com> | 2021-07-07 16:50:33 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2021-07-07 16:50:33 +0100 |
commit | ca52626babd59d58f3962dcaab94cf840e6aff82 (patch) | |
tree | 5ef76635983fe2c0e6f26e1ddca2a4c4f69640d8 /bfd/elfcode.h | |
parent | 7a30ac441a4e776e68399cb916c4731b5192e931 (diff) | |
download | gdb-ca52626babd59d58f3962dcaab94cf840e6aff82.zip gdb-ca52626babd59d58f3962dcaab94cf840e6aff82.tar.gz gdb-ca52626babd59d58f3962dcaab94cf840e6aff82.tar.bz2 |
Remove an accidental change to elfcode.h included as part of commit 6e0dfbf420.
PR 27659
* elfcode.h (elf_swap_symbol_out): Revert accidental change that
removed an abort if the shndx pointer is NULL.
Diffstat (limited to 'bfd/elfcode.h')
-rw-r--r-- | bfd/elfcode.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bfd/elfcode.h b/bfd/elfcode.h index 0f5156f..7eb27c2 100644 --- a/bfd/elfcode.h +++ b/bfd/elfcode.h @@ -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); |