Landing: d1268210b6f6

Project / Subsystem

binutils / ld

Date

2026-07-30

Author

"H.J. Lu" <hjl@sourceware.org>

Commit

d1268210b6f6eddd267a4ebe4b7d36b802af628d

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
ld
patch_id
—
commit_hash
d1268210b6f6eddd267a4ebe4b7d36b802af628d
source_type
public_inbox
headline
ld: Don't define section symbols for excluded sections.
tldr
Linker avoids defining section symbols for ELF sections explicitly excluded.
author
"H.J. Lu" <hjl@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • linker
  • • ELF
  • • bugfix
discussion_id_link
—
bugzilla_pr
—
date
2026-07-30T00:00:00.000Z

The linker (ld) will no longer define special symbols like __start, __stop, .startof., and .sizeof. for sections marked with the ELF SHF_EXCLUDE flag, unless the output is relocatable or the flag is cleared. This change addresses PR ld/34448 by ensuring these symbols are only created when relevant, preventing potential issues with excluded section content.