diff options
author | Alan Modra <amodra@gmail.com> | 2024-03-28 20:33:32 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2024-04-02 10:32:04 +1030 |
commit | 3c6c32951e292a51ede70b8087bb0308d7dbc4fc (patch) | |
tree | 1c078c47c7428cfed50d52e6c785c6a9b6247ef0 /bfd/elf64-mips.c | |
parent | af969b14aedcc0ae27dcefab4327ff2d153dec8b (diff) | |
download | gdb-3c6c32951e292a51ede70b8087bb0308d7dbc4fc.zip gdb-3c6c32951e292a51ede70b8087bb0308d7dbc4fc.tar.gz gdb-3c6c32951e292a51ede70b8087bb0308d7dbc4fc.tar.bz2 |
PR 30569, delete _bfd_mips_elf_early_size_sections
PR30569 was triggered by a patch of mine 6540edd52cc0 moving the call
to always_size_sections in bfd_elf_size_dynamic_sections earlier, made
to support the x86 DT_RELR implementation. This broke mips16 code
handling stubs when --export-dynamic is passed to the linker, because
numerous symbols then became dynamic after always_size_sections. The
mips backend fiddles with symbols in its always_size_sections. Maciej
in 902e9fc76a0e had moved the call to always_size_sections to after
the export-dynamic code. Prior to that, Nathan in 04c3a75556c0 moved
it before the exec stack code, back to the start of
bfd_elf_size_dynamic_sections which was where Ian put it originally
in ff12f303355b. So the call has moved around a little. I'm leaving
it where it is, and instead calling mips_elf_check_symbols from
late_size_sections (the old size_dynamic_sections) which is now always
called. In fact, the whole of _bfd_mips_elf_early_size_sections can
be merged into _bfd_mips_elf_late_size_sections.
Diffstat (limited to 'bfd/elf64-mips.c')
-rw-r--r-- | bfd/elf64-mips.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/bfd/elf64-mips.c b/bfd/elf64-mips.c index 78bece0..736e5f5 100644 --- a/bfd/elf64-mips.c +++ b/bfd/elf64-mips.c @@ -4748,8 +4748,6 @@ const struct elf_size_info mips_elf64_size_info = #define elf_backend_get_target_dtag _bfd_mips_elf_get_target_dtag #define elf_backend_adjust_dynamic_symbol \ _bfd_mips_elf_adjust_dynamic_symbol -#define elf_backend_early_size_sections \ - _bfd_mips_elf_early_size_sections #define elf_backend_late_size_sections \ _bfd_mips_elf_late_size_sections #define elf_backend_init_index_section _bfd_elf_init_1_index_section |