Fix: nm: SEGV at bfd/elf.c:2267 in _bfd_elf_get_dynamic_symbols

PR 30904
  * elf.c (_bfd_elf_get_dynamic_symbols): Fix typo when checking to see if the gnuchains array has been successfully created.
This commit is contained in:
Nick Clifton 2023-10-05 15:27:47 +01:00
parent 1499719e6d
commit 345309aadd
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2023-10-05 Nick Clifton <nickc@redhat.com>
PR 30904
* elf.c (_bfd_elf_get_dynamic_symbols): Fix typo when checking to
see if the gnuchains array has been successfully created.
2023-10-02 Nick Clifton <nickc@redhat.com>
* peXXigen.c (_bfd_XXi_only_swap_filehdr_out): Use

View File

@ -2227,7 +2227,7 @@ _bfd_elf_get_dynamic_symbols (bfd *abfd, Elf_Internal_Phdr *phdr,
goto error_return;
gnuchains = get_hash_table_data (abfd, maxchain, 4, filesize);
if (gnubuckets == NULL)
if (gnuchains == NULL)
goto error_return;
ngnuchains = maxchain;