diff options
author | Alan Modra <amodra@gmail.com> | 2024-02-21 09:43:40 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2024-02-21 23:40:12 +1030 |
commit | f618d7fda20afe68c5c3979c4c1be40714e8e5a0 (patch) | |
tree | f8d8e01124d00730e842d21369191e834037bd36 /bfd/elfnn-kvx.c | |
parent | 44f85d2d790a151825fdff867128b15ae677f224 (diff) | |
download | gdb-f618d7fda20afe68c5c3979c4c1be40714e8e5a0.zip gdb-f618d7fda20afe68c5c3979c4c1be40714e8e5a0.tar.gz gdb-f618d7fda20afe68c5c3979c4c1be40714e8e5a0.tar.bz2 |
Remove is_relocatable_executable from backend code
With the removal of symbian support, most targets no longer or never
did set is_relocatable_executable. Remove the backend support that is
no longer relevant.
* elf32-arm.c (record_arm_to_thumb_glue, elf32_arm_create_thumb_stub),
(elf32_arm_final_link_relocate, elf32_arm_check_relocs),
(elf32_arm_adjust_dynamic_symbol, allocate_dynrelocs_for_symbol),
(elf32_arm_output_arch_local_syms): Remove is_relocatable_executable
code and comments.
* elf32-csky.c (csky_elf_adjust_dynamic_symbol): Likewise.
* elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Likewise.
* elfnn-kvx.c (elfNN_kvx_final_link_relocate): Likewise.
* elfxx-mips.c (count_section_dynsyms): Likewise.
Diffstat (limited to 'bfd/elfnn-kvx.c')
-rw-r--r-- | bfd/elfnn-kvx.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/bfd/elfnn-kvx.c b/bfd/elfnn-kvx.c index ae5ed6b..8591dea 100644 --- a/bfd/elfnn-kvx.c +++ b/bfd/elfnn-kvx.c @@ -2052,11 +2052,9 @@ elfNN_kvx_final_link_relocate (reloc_howto_type *howto, case BFD_RELOC_KVX_S64_LO10: case BFD_RELOC_KVX_S64_UP27: case BFD_RELOC_KVX_S64_EX27: - /* When generating a shared object or relocatable executable, these - relocations are copied into the output file to be resolved at - run time. */ - if (((bfd_link_pic (info) == true) - || globals->root.is_relocatable_executable) + /* When generating a shared library or PIE, these relocations + are copied into the output file to be resolved at run time. */ + if (bfd_link_pic (info) && (input_section->flags & SEC_ALLOC) && (h == NULL || (ELF_ST_VISIBILITY (h->other) == STV_DEFAULT |