Landing: 53fd57102aa8
Project / Subsystem
binutils / bfd
Date
2026-08-17
Author
Alan Modra <amodra@gmail.com>
Commit
53fd57102aa8f37fa604ef40a1f58bd86315832f
Source
public_inbox
Perf win
No
Breaking
No
All attributes
- project
- binutils
- subsystem
- bfd
- patch_id
- —
- commit_hash
- 53fd57102aa8f37fa604ef40a1f58bd86315832f
- source_type
- public_inbox
- headline
- Add sanity checks to dynamic reloc section creation in elflink.c
- tldr
- Improves robustness of dynamic reloc section creation by adding sanity checks.
- author
- Alan Modra <amodra@gmail.com>
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • linker
- • elf
- • robustness
- • relocations
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-17T00:00:00.000Z
This commit enhances the _bfd_elf_make_dynamic_reloc_section function in elflink.c by adding critical sanity checks. It now verifies that the byte order of input objects matches the output and ensures the dynobj is valid. Additionally, memory allocated for section names is freed if unused, and a minor change in the return type of get_dynamic_reloc_section_name avoids an unnecessary cast.