Landing: bc145a240333

Project / Subsystem

binutils / gas

Date

2026-04-30

Author

Jens Remus <jremus@sourceware.org>

Commit

bc145a24033381e93bae0ee24add664386c66433

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
gas
patch_id
commit_hash
bc145a24033381e93bae0ee24add664386c66433
source_type
public_inbox
headline
Gas emits error on open CFI at EOF.
tldr
The assembler now errors out if a .cfi_startproc directive is missing a corresponding .cfi_endproc at the end of the input file.
author
Jens Remus <jremus@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • assembler
  • gas
  • DWARF
  • CFI
  • stack unwinding
discussion_id_link
public_inbox:binutils#34026
bugzilla_pr
date
2026-04-30T00:00:00.000Z

The assembler now detects an open CFI (Call Frame Information) at the end of the file, which occurs when a .cfi_startproc directive is present without a matching .cfi_endproc. Instead of crashing, the assembler emits an error message and sets the DWARF FDE (Frame Description Entry) end address to its start address, preventing potential issues during stack trace generation.