mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
ecb37ccd0f
The sizes of offsets in the `.debug_str_offsets.dwo` section depend on the format of compilation or type units referencing them: 4 bytes for DWARF32 units and 8 bytes for DWARF64 ones. The fix uses parsed units to determine the actual size of offsets in the corresponding part of the `.debug_str_offsets.dwo` section. Differential Revision: https://reviews.llvm.org/D78555
14 lines
525 B
ArmAsm
14 lines
525 B
ArmAsm
# RUN: llvm-mc -triple x86_64-unknown-linux %s -filetype=obj -o %t.o
|
|
# RUN: llvm-dwarfdump -v %t.o | FileCheck --check-prefix=INVALIDSECTIONLENGTH %s
|
|
#
|
|
# Test object to verify that llvm-dwarfdump handles a degenerate string offsets
|
|
# section.
|
|
#
|
|
# Every unit contributes to the string_offsets table.
|
|
.section .debug_str_offsets,"",@progbits
|
|
# A degenerate section, not enough for a single entry.
|
|
.byte 2
|
|
|
|
# INVALIDSECTIONLENGTH: .debug_str_offsets contents:
|
|
# INVALIDSECTIONLENGTH: 0x00000000: Gap, length = 1
|