aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/elf.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 851b476..f44806f 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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
diff --git a/bfd/elf.c b/bfd/elf.c
index d5c570f..b5b0c69 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -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;