aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-x86.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2024-03-28 19:25:42 +1030
committerAlan Modra <amodra@gmail.com>2024-04-02 10:32:04 +1030
commitaf969b14aedcc0ae27dcefab4327ff2d153dec8b (patch)
tree0798575242610edd85068427a07f486ee5750660 /bfd/elfxx-x86.h
parentf37f8c46c2e876a524301d6916a04cf7debb6483 (diff)
downloadgdb-af969b14aedcc0ae27dcefab4327ff2d153dec8b.zip
gdb-af969b14aedcc0ae27dcefab4327ff2d153dec8b.tar.gz
gdb-af969b14aedcc0ae27dcefab4327ff2d153dec8b.tar.bz2
PR 30569, always call elf_backend_size_dynamic_sections
This largely mechanical patch is preparation for a followup patch. For quite some time I've thought that it would be useful to call elf_backend_size_dynamic_sections even when no dynamic objects are seen by the linker. That's what this patch does, with some renaming. There are no functional changes to the linker, just a move of the dynobj test in bfd_elf_size_dynamic_sections to target backend functions, replacing the asserts/aborts already there. No doubt some of the current always_size_sections functions could be moved to size_dynamic_sections but I haven't made that change. Because both hooks are now always called, I have renamed always_size_sections to early_size_sections and size_dynamic_sections to late_size_sections. I condisdered calling late_size_sections plain size_sections, since this is the usual target dynamic section sizing hook, but decided that searching the sources for "size_sections" would then hit early_size_sections and other functions.
Diffstat (limited to 'bfd/elfxx-x86.h')
-rw-r--r--bfd/elfxx-x86.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/bfd/elfxx-x86.h b/bfd/elfxx-x86.h
index b3af9b8..dacf368 100644
--- a/bfd/elfxx-x86.h
+++ b/bfd/elfxx-x86.h
@@ -853,13 +853,13 @@ extern bool _bfd_elf_x86_valid_reloc_p
const Elf_Internal_Rela *, struct elf_link_hash_entry *,
Elf_Internal_Sym *, Elf_Internal_Shdr *, bool *) ATTRIBUTE_HIDDEN;
-extern bool _bfd_x86_elf_size_dynamic_sections
+extern bool _bfd_x86_elf_late_size_sections
(bfd *, struct bfd_link_info *) ATTRIBUTE_HIDDEN;
extern struct elf_x86_link_hash_table *_bfd_x86_elf_finish_dynamic_sections
(bfd *, struct bfd_link_info *) ATTRIBUTE_HIDDEN;
-extern bool _bfd_x86_elf_always_size_sections
+extern bool _bfd_x86_elf_early_size_sections
(bfd *, struct bfd_link_info *) ATTRIBUTE_HIDDEN;
extern void _bfd_x86_elf_merge_symbol_attribute
@@ -934,8 +934,8 @@ extern void _bfd_x86_elf_link_report_relative_reloc
#define elf_backend_check_relocs \
_bfd_x86_elf_check_relocs
-#define elf_backend_size_dynamic_sections \
- _bfd_x86_elf_size_dynamic_sections
+#define elf_backend_late_size_sections \
+ _bfd_x86_elf_late_size_sections
#define elf_backend_merge_symbol_attribute \
_bfd_x86_elf_merge_symbol_attribute
#define elf_backend_copy_indirect_symbol \