Landing: a7991ab4ab4a

Project / Subsystem

binutils / bfd

Date

2026-10-02

Author

Georg-Johann Lay <gjl@sourceware.org>

Commit

a7991ab4ab4a67108402eab6eabc51517b5bc000

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
bfd
patch_id
—
commit_hash
a7991ab4ab4a67108402eab6eabc51517b5bc000
source_type
public_inbox
headline
AVR: Prune unused vectab entries.
tldr
New linker option `--prune-vectab` removes unused entries from AVR vector tables during relaxation.
author
Georg-Johann Lay <gjl@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • avr
  • • linker
  • • optimization
  • • embedded
discussion_id_link
—
bugzilla_pr
—
date
2026-10-02T00:00:00.000Z

This patch introduces the --prune-vectab linker option for AVR targets, which removes unused entries from the interrupt vector table. It operates during the relaxation phase, cleaning up tail-end entries that typically point to __bad_interrupt. This feature helps optimize code size and resolves an issue with AVR-LibC’s vector table structure (PR ld/34679).