Landing: 0a6aadacb2e9
Project / Subsystem
binutils / binutils/bfd
Date
2026-06-06
Author
Alan Modra
Commit
0a6aadacb2e9a2695c82635dd8b2f7fccf537adf
Source
public_inbox
Perf win
No
Breaking
No
All attributes
- project
- binutils
- subsystem
- binutils/bfd
- patch_id
- —
- commit_hash
- 0a6aadacb2e9a2695c82635dd8b2f7fccf537adf
- source_type
- public_inbox
- headline
- BFD's implib symbol filtering now uses `size_t` for counts.
- tldr
- Binutils BFD now uses `size_t` for symbol counts in import library filtering functions, improving type safety and consistency.
- author
- Alan Modra
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • refactor
- • linker
- • type safety
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-06-06T00:00:00.000Z
This commit refactors the filter_implib_symbols implementations within Binutils BFD to consistently use size_t for symbol counts, replacing previous uses of unsigned int. This change improves type safety by aligning the count types with standard practice for sizes and counts. The commit also renames _bfd_elf_filter_global_symbols to _bfd_elf_filter_implib_symbols and moves its fallback definition for clarity, enhancing internal consistency for import library generation.