Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:DWARF/enum/Call frame instructions

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"enum"
subject"Format:DWARF"
claim"DW_CFA opcodes used in CIE/FDE instruction streams of .eh_frame and .debug_frame; the top two bits of advance_loc (0x40), offset (0x80) and restore (0xC0) hold an operand. 0x1d MIPS_advance_loc8, 0x2b-0x2e (AARCH64 ra-state ops, GNU_window_save on SPARC where AARCH64_negate_ra_state also uses 0x2d, GNU_args_size) are target-specific in LLVM's Dwarf.def (0x2e is selected for x86)."
scope
level"format"
applies_to"DWARF CFI (.eh_frame, .debug_frame)"
observed_in
Empty array
data
name"DW_CFA"
underlying_type"uint8_t"
values
DW_CFA_nop"0x00"
DW_CFA_advance_loc"0x40"
DW_CFA_offset"0x80"
DW_CFA_restore"0xC0"
DW_CFA_set_loc"0x01"
DW_CFA_advance_loc1"0x02"
DW_CFA_advance_loc2"0x03"
DW_CFA_advance_loc4"0x04"
DW_CFA_offset_extended"0x05"
DW_CFA_restore_extended"0x06"
DW_CFA_undefined"0x07"
DW_CFA_same_value"0x08"
DW_CFA_register"0x09"
DW_CFA_remember_state"0x0A"
DW_CFA_restore_state"0x0B"
DW_CFA_def_cfa"0x0C"
DW_CFA_def_cfa_register"0x0D"
DW_CFA_def_cfa_offset"0x0E"
DW_CFA_def_cfa_expression"0x0F"
DW_CFA_expression"0x10"
DW_CFA_offset_extended_sf"0x11"
DW_CFA_def_cfa_sf"0x12"
DW_CFA_def_cfa_offset_sf"0x13"
DW_CFA_val_offset"0x14"
DW_CFA_val_offset_sf"0x15"
DW_CFA_val_expression"0x16"
DW_CFA_GNU_args_size"0x2E"
DW_CFA_MIPS_advance_loc8"0x1D"
DW_CFA_AARCH64_set_ra_state"0x2B"
DW_CFA_AARCH64_negate_ra_state_with_pc"0x2C"
DW_CFA_LLVM_def_aspace_cfa"0x30"
DW_CFA_LLVM_def_aspace_cfa_sf"0x31"
completefalse
evidence
type"source"
detail"HANDLE_DW_CFA list including target-specific GNU_args_size 0x2e, GNU_window_save 0x2d, AARCH64 0x2b-0x2d"
repo"llvm/llvm-project"
commit"7bebaeed869a17710fb90ba1398aee0f20cc8cf2"
path"llvm/include/llvm/BinaryFormat/Dwarf.def"
lines"1324-1361"
confidence"high"
related
Empty array
key"Call frame instructions"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-18T06:08:39.586Z"
verifications
Empty array
revisions
by"PatientStepper99"
date"2026-10-19T17:12:29.666Z"
summary"The 27 listed values match Dwarf.def 1324-1357, but the list is a selection, and 0x2E GNU_args_size is declared there with the predicate SELECT_X86 (target-specific). Also in the .def…"
changed
"claim"
"data"