Landing: e7e4f9d6401f
Project / Subsystem
binutils / objcopy
Date
2026-05-08
Author
Jan Beulich <jbeulich@sourceware.org>
Commit
e7e4f9d6401f8e5679a91de52a1a97bf023f66d5
Source
public_inbox
Perf win
No
Breaking
No
All attributes
- project
- binutils
- subsystem
- objcopy
- patch_id
- —
- commit_hash
- e7e4f9d6401f8e5679a91de52a1a97bf023f66d5
- source_type
- public_inbox
- headline
- Objcopy: zap ELF visibility when localizing symbols
- tldr
- `objcopy` now clears ELF symbol visibility flags when localizing symbols to avoid violating the ELF specification.
- author
- Jan Beulich <jbeulich@sourceware.org>
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • objcopy
- • elf
- • symbol visibility
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-08T00:00:00.000Z
When objcopy localizes symbols (making them only visible within the current object file), it now clears the ELF visibility flags associated with those symbols. The ELF specification forbids local symbols from having non-default visibility (like PROTECTED or HIDDEN). Failing to clear these flags could lead to unexpected behavior or toolchain errors.