forked from OSchip/llvm-project
65 lines
2.0 KiB
ArmAsm
65 lines
2.0 KiB
ArmAsm
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
|
|
# RUN: ld.lld --gdb-index %t.o -o %t
|
|
# RUN: llvm-dwarfdump -gdb-index %t | FileCheck %s
|
|
|
|
# Kind << 24 | CuIndex = 48 << 24 | 1 = 0x30000001
|
|
# CHECK: Constant pool
|
|
# CHECK-NEXT: 0(0x0): 0x30000001
|
|
|
|
.globl _start
|
|
_start:
|
|
ret
|
|
|
|
.section .debug_abbrev,"",@progbits
|
|
.byte 1 # Abbreviation Code
|
|
.byte 17 # DW_TAG_compile_unit
|
|
.byte 1 # DW_CHILDREN_yes
|
|
.ascii "\264B" # DW_AT_GNU_pubnames
|
|
.byte 12 # DW_FORM_flag
|
|
.byte 0 # EOM(1)
|
|
.byte 0 # EOM(2)
|
|
.byte 2 # Abbreviation Code
|
|
.byte 46 # DW_TAG_subprogram
|
|
.byte 0 # DW_CHILDREN_no
|
|
.byte 3 # DW_AT_name
|
|
.byte 8 # DW_FORM_string
|
|
.byte 0 # EOM(1)
|
|
.byte 0 # EOM(2)
|
|
.byte 0
|
|
|
|
.section .debug_info,"",@progbits
|
|
.Lcu_begin0:
|
|
.long .Lcu_end0 - .Lcu_begin0 - 4
|
|
.short 4 # DWARF version number
|
|
.long 0 # Offset Into Abbrev. Section
|
|
.byte 4 # Address Size
|
|
.byte 1 # Abbrev [1] DW_TAG_compile_unit
|
|
.byte 0 # DW_AT_GNU_pubnames
|
|
.byte 0
|
|
.Lcu_end0:
|
|
.Lcu_begin1:
|
|
.long .Lcu_end1 - .Lcu_begin1 - 4
|
|
.short 4 # DWARF version number
|
|
.long 0 # Offset Into Abbrev. Section
|
|
.byte 4 # Address Size
|
|
.Ldie:
|
|
.byte 1 # Abbrev [1] DW_TAG_compile_unit
|
|
.byte 1 # DW_AT_GNU_pubnames
|
|
.byte 2 # Abbrev [2] DW_TAG_subprogram
|
|
.asciz "_start" # DW_AT_name
|
|
.byte 0
|
|
.Lcu_end1:
|
|
|
|
# .debug_gnu_pubnames has just one set, associated with .Lcu_begin1 (CuIndex: 1)
|
|
.section .debug_gnu_pubnames,"",@progbits
|
|
.long .LpubNames_end1-.LpubNames_begin1
|
|
.LpubNames_begin1:
|
|
.short 2 # Version
|
|
.long .Lcu_begin1 # CU Offset
|
|
.long .Lcu_end1 - .Lcu_begin1
|
|
.long .Ldie - .Lcu_begin1
|
|
.byte 48 # Kind: FUNCTION, EXTERNAL
|
|
.asciz "_start" # External Name
|
|
.long 0
|
|
.LpubNames_end1:
|