forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user