[PATCH] D107012: [DWARF] Refactor test to remove relocations for DWO
Alexander Yermolovich via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 29 10:07:09 PDT 2021
ayermolo added inline comments.
================
Comment at: llvm/test/DebugInfo/X86/dwarfdump-header.s:430
.byte 1 # DW_LNCT_path
- .byte 0x0e # DW_FORM_strp (-> .debug_str.dwo)
+ .byte 0x25 # DW_FORM_strx1 (-> .debug_str.dwo)
# Directory table entries
----------------
dblaikie wrote:
> That doesn't look right, does it? 0x25 would be too large an index for the .debug_str_offsets.dwo section - there are only 5 things in there, so the valid indexes should be [0, 4], I think?
This is encoding for DW_FORM_strx1.
0xe --> HANDLE_DW_FORM(0x0e, strp, 2, DWARF)
0x25 --> HANDLE_DW_FORM(0x25, strx1, 5, DWARF)
At least this is my understanding of what is happening here looking at comments and value of original .byte
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107012/new/
https://reviews.llvm.org/D107012
More information about the llvm-commits
mailing list