72 lines · plain
1# RUN: llvm-mc %s -filetype obj -triple x86_64-pc-linux --defsym CASE1=0 -o %t1.o2# RUN: not llvm-dwarfdump -debug-loclists %t1.o 2>&1 | FileCheck %s --check-prefix=ULEB -DOFFSET=0x0000000d3 4# RUN: llvm-mc %s -filetype obj -triple x86_64-pc-linux --defsym CASE2=0 -o %t2.o5# RUN: not llvm-dwarfdump -debug-loclists %t2.o 2>&1 | FileCheck %s --check-prefix=ULEB -DOFFSET=0x0000000e6 7# RUN: llvm-mc %s -filetype obj -triple x86_64-pc-linux --defsym CASE3=0 -o %t3.o8# RUN: not llvm-dwarfdump -debug-loclists %t3.o 2>&1 | FileCheck %s --check-prefix=ULEB -DOFFSET=0x0000000f9 10# RUN: llvm-mc %s -filetype obj -triple x86_64-pc-linux --defsym CASE4=0 -o %t4.o11# RUN: not llvm-dwarfdump -debug-loclists %t4.o 2>&1 | FileCheck %s12 13# RUN: llvm-mc %s -filetype obj -triple x86_64-pc-linux --defsym CASE5=0 -o %t5.o14# RUN: not llvm-dwarfdump -debug-loclists %t5.o 2>&1 | FileCheck %s15 16# RUN: llvm-mc %s -filetype obj -triple x86_64-pc-linux --defsym CASE6=0 -o %t6.o17# RUN: not llvm-dwarfdump -debug-loclists %t6.o 2>&1 | FileCheck %s18 19# RUN: llvm-mc %s -filetype obj -triple x86_64-pc-linux --defsym CASE7=0 -o %t7.o20# RUN: not llvm-dwarfdump -debug-loclists %t7.o 2>&1 | FileCheck %s --check-prefix=UNIMPL21 22# CHECK: error: unexpected end of data23# ULEB: error: unable to decode LEB128 at offset [[OFFSET]]: malformed uleb128, extends past end24# UNIMPL: error: LLE of kind 47 not supported25 26.section .debug_loclists,"",@progbits27 .long .Ldebug_loclist_table_end0-.Ldebug_loclist_table_start028.Ldebug_loclist_table_start0:29 .short 5 # Version.30 .byte 8 # Address size.31 .byte 0 # Segment selector size.32 .long 0 # Offset entry count.33.Lloclists_table_base0:34.Ldebug_loc0:35.ifdef CASE136 .byte 4 # DW_LLE_offset_pair37.endif38.ifdef CASE239 .byte 4 # DW_LLE_offset_pair40 .uleb128 0x0 # starting offset41.endif42.ifdef CASE343 .byte 4 # DW_LLE_offset_pair44 .uleb128 0x0 # starting offset45 .uleb128 0x10 # ending offset46.endif47.ifdef CASE448 .byte 4 # DW_LLE_offset_pair49 .uleb128 0x0 # starting offset50 .uleb128 0x10 # ending offset51 .byte 1 # Loc expr size52.endif53.ifdef CASE554 .byte 4 # DW_LLE_offset_pair55 .uleb128 0x0 # starting offset56 .uleb128 0x10 # ending offset57 .byte 1 # Loc expr size58 .byte 117 # DW_OP_breg559.endif60.ifdef CASE661 .byte 4 # DW_LLE_offset_pair62 .uleb128 0x0 # starting offset63 .uleb128 0x10 # ending offset64 .uleb128 0xdeadbeef # Loc expr size65.endif66.ifdef CASE767 .byte 0x4768.endif69 70.Ldebug_loclist_table_end0:71 72