-
Notifications
You must be signed in to change notification settings - Fork 11k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DWARF] Support DWARF64 in DWARFListTableHeader.
This enables 64-bit DWARF support for parsing range and location list tables. Differential Revision: https://reviews.llvm.org/D66643 llvm-svn: 371014
- Loading branch information
1 parent
e99dc4b
commit 991f0fb
Showing
7 changed files
with
99 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
llvm/test/tools/llvm-dwarfdump/X86/Inputs/debug_rnglists_DWARF64.s
This file was deleted.
Oops, something went wrong.
39 changes: 39 additions & 0 deletions
39
llvm/test/tools/llvm-dwarfdump/X86/debug_rnglists_dwarf64.s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# RUN: llvm-mc %s -filetype obj -triple x86_64-pc-linux -o - | \ | ||
# RUN: llvm-dwarfdump -v --debug-rnglists - | \ | ||
# RUN: FileCheck %s | ||
|
||
# CHECK: .debug_rnglists contents: | ||
# CHECK-NEXT: 0x00000000: range list header: | ||
# CHECK-SAME: length = 0x0000001a, | ||
# CHECK-SAME: version = 0x0005, | ||
# CHECK-SAME: addr_size = 0x08, | ||
# CHECK-SAME: seg_size = 0x00, | ||
# CHECK-SAME: offset_entry_count = 0x00000002 | ||
# CHECK-NEXT: offsets: [ | ||
# CHECK-NEXT: 0x00000010 => 0x00000024 | ||
# CHECK-NEXT: 0x00000011 => 0x00000025 | ||
# CHECK-NEXT: ] | ||
# CHECK-NEXT: ranges: | ||
# CHECK-NEXT: 0x00000024: [DW_RLE_end_of_list] | ||
# CHECK-NEXT: 0x00000025: [DW_RLE_end_of_list] | ||
|
||
.section .debug_rnglists,"",@progbits | ||
.long 0xffffffff # DWARF64 mark | ||
.quad .Lend - .Lversion # Table length | ||
.Lversion: | ||
.short 5 # Version | ||
.byte 8 # Address size | ||
.byte 0 # Segment selector size | ||
.long 2 # Offset entry count | ||
|
||
.Loffsets: | ||
.quad .Ltable0 - .Loffsets | ||
.quad .Ltable1 - .Loffsets | ||
|
||
.Ltable0: | ||
.byte 0 # DW_RLE_end_of_list | ||
|
||
.Ltable1: | ||
.byte 0 # DW_RLE_end_of_list | ||
|
||
.Lend: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
llvm/test/tools/llvm-dwarfdump/X86/debug_rnglists_reserved_length.s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# RUN: llvm-mc %s -filetype obj -triple x86_64-pc-linux -o - | \ | ||
# RUN: llvm-dwarfdump --debug-rnglists - 2>&1 | \ | ||
# RUN: FileCheck %s --implicit-check-not=error | ||
|
||
# CHECK: error: .debug_rnglists table at offset 0x0 has unsupported reserved unit length of value 0xfffffff0 | ||
|
||
.section .debug_rnglists,"",@progbits | ||
.long 0xfffffff0 |