Landing: 695e1cb7f1e6

Project / Subsystem

binutils / gas/elf

Date

2026-05-08

Author

Jan Beulich <jbeulich@sourceware.org>

Commit

695e1cb7f1e6158e113f6022a57083b82ff5ef54

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
gas/elf
patch_id
commit_hash
695e1cb7f1e6158e113f6022a57083b82ff5ef54
source_type
public_inbox
headline
Assembler now restricts visibility changes for ELF symbols.
tldr
ELF visibility attributes now follow the "most restrictive wins" rule during assembly, aligning with linker behavior.
author
Jan Beulich <jbeulich@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • assembler
  • elf
  • visibility
  • linking
discussion_id_link
bugzilla_pr
date
2026-05-08T00:00:00.000Z

The assembler now enforces the “most restrictive visibility wins” rule when applying visibility attributes to ELF symbols. This change aligns the assembler’s behavior with the linker, ensuring consistency in visibility propagation. If a symbol already has a visibility attribute, the assembler will only allow it to be changed to a more restrictive one; otherwise, a warning is issued.