[all-commits] [llvm/llvm-project] 0cd794: [llvm-dwarfdump] Fix parsing DW_CFA_AARCH64_negate...
Igor Kudrin via All-commits
all-commits at lists.llvm.org
Thu Mar 7 16:34:42 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0cd7942c7f7a6f0c8a749c5f0d6d758e0a6fd9d9
https://github.com/llvm/llvm-project/commit/0cd7942c7f7a6f0c8a749c5f0d6d758e0a6fd9d9
Author: Igor Kudrin <ikudrin at accesssoftek.com>
Date: 2024-03-08 (Fri, 08 Mar 2024)
Changed paths:
M llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp
M llvm/test/CodeGen/AArch64/sign-return-address-cfi-negate-ra-state.ll
Log Message:
-----------
[llvm-dwarfdump] Fix parsing DW_CFA_AARCH64_negate_ra_state (#84128)
The saved state of the AARCH64_DWARF_PAUTH_RA_STATE register was not
updated, so `llvm-dwarfdump` continued to dump it as `reg34=1` even if
the correct value is `0`:
```
> llvm-dwarfdump -v test.o
...
0000002c 00000024 00000030 FDE cie=00000000 pc=00000030...00000064
Format: DWARF32
DW_CFA_advance_loc: 4
DW_CFA_AARCH64_negate_ra_state:
DW_CFA_advance_loc: 4
DW_CFA_def_cfa_offset: +16
DW_CFA_offset: W30 -16
DW_CFA_remember_state:
DW_CFA_advance_loc: 16
DW_CFA_def_cfa_offset: +0
DW_CFA_advance_loc: 4
DW_CFA_AARCH64_negate_ra_state:
DW_CFA_restore: W30
DW_CFA_advance_loc: 4
DW_CFA_restore_state:
DW_CFA_advance_loc: 12
DW_CFA_def_cfa_offset: +0
DW_CFA_advance_loc: 4
DW_CFA_AARCH64_negate_ra_state:
DW_CFA_restore: W30
DW_CFA_nop:
0x30: CFA=WSP
0x34: CFA=WSP: reg34=1
0x38: CFA=WSP+16: W30=[CFA-16], reg34=1
0x48: CFA=WSP: W30=[CFA-16], reg34=1
0x4c: CFA=WSP: reg34=1 <--- should be '=0'
0x50: CFA=WSP+16: W30=[CFA-16], reg34=1
0x5c: CFA=WSP: W30=[CFA-16], reg34=1
0x60: CFA=WSP: reg34=1 <--- should be '=0'
```
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list