aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-ia64-vms.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2024-02-14 14:34:47 +1030
committerAlan Modra <amodra@gmail.com>2024-02-15 11:24:13 +1030
commitcf95b909e2c29476525da29bfb4f0d2c8211e8b6 (patch)
treec437c362eb3e94776db9f3dfd40e8d679c5a153b /bfd/elf64-ia64-vms.c
parent122d82284483577a388541f7fe2739754d4699b6 (diff)
downloadfsf-binutils-gdb-cf95b909e2c29476525da29bfb4f0d2c8211e8b6.zip
fsf-binutils-gdb-cf95b909e2c29476525da29bfb4f0d2c8211e8b6.tar.gz
fsf-binutils-gdb-cf95b909e2c29476525da29bfb4f0d2c8211e8b6.tar.bz2
elf_backend_finish_dynamic_symbol returning false
Returning false from elf_backend_finish_dynamic_symbol will not result in an error being printed unless bfd_error is set but will result in the linker exiting with a non-zero status. If just bfd_error is set then a generic "final link failed" will result, which doesn't help a user much. So elf_backend_finish_dynamic_symbol should print its own error message whenever returning false, or use BFD_ASSERT or abort to print assertion failures for conditions that shouldn't occur. This patch does that, and removes unnecessary "htab != NULL" tests in elf_backend_finish_dynamic_symbol. Such tests aren't needed in a function only called via elf_backend_data.
Diffstat (limited to 'bfd/elf64-ia64-vms.c')
-rw-r--r--bfd/elf64-ia64-vms.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/bfd/elf64-ia64-vms.c b/bfd/elf64-ia64-vms.c
index 2f37e90..aa058a1 100644
--- a/bfd/elf64-ia64-vms.c
+++ b/bfd/elf64-ia64-vms.c
@@ -4003,8 +4003,6 @@ elf64_ia64_finish_dynamic_symbol (bfd *output_bfd,
struct elf64_ia64_dyn_sym_info *dyn_i;
ia64_info = elf64_ia64_hash_table (info);
- if (ia64_info == NULL)
- return false;
dyn_i = get_dyn_sym_info (ia64_info, h, NULL, NULL, false);