Landing: c4150acbda1b

Project / Subsystem

binutils / gas/elf

Date

2026-05-08

Author

Jan Beulich <jbeulich@sourceware.org>

Commit

c4150acbda1b3ce0602f79cbb7700b39e577be7e

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
gas/elf
patch_id
commit_hash
c4150acbda1b3ce0602f79cbb7700b39e577be7e
source_type
public_inbox
headline
Gas/ELF: warn upon non-default visibility of local symbols
tldr
The assembler now warns when a local symbol is defined with non-default visibility, preventing the creation of invalid ELF files.
author
Jan Beulich <jbeulich@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • gas
  • elf
  • symbol visibility
discussion_id_link
bugzilla_pr
date
2026-05-08T00:00:00.000Z

The assembler (gas) now issues a warning when a local symbol is defined with non-default visibility (e.g., PROTECTED or HIDDEN). The ELF standard forbids local symbols from having such visibility attributes, and silently creating such symbols can lead to issues with other tools. This change helps developers catch these errors early. A LoongArch-specific hook was also removed in response.