1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/test/DebugInfo/X86/gnu-public-names-multiple-cus-2.s
Fangrui Song a42c9164ba [DWARF] Change pubnames to use DWARFSection instead of StringRef
Summary: The debug_info_offset values in .debug_{,gnu_}pub{name,types} may be relocated. Change it to DWARFSection so that we can get relocated values.

Reviewers: ruiu, dblaikie, grimar, JDevlieghere

Reviewed By: JDevlieghere

Subscribers: aprantl, JDevlieghere, llvm-commits

Differential Revision: https://reviews.llvm.org/D54375

llvm-svn: 346615
2018-11-11 18:57:28 +00:00

36 lines
968 B
ArmAsm

# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
# RUN: llvm-dwarfdump -debug-gnu-pubnames %t.o | FileCheck %s
# CHECK: unit_offset = 0x00000000
# CHECK: unit_offset = 0x0000000c
.section .debug_abbrev,"",@progbits
.byte 1
.section .debug_info,"",@progbits
.Lcu_begin0:
.long 8 # Length of Unit
.short 4 # DWARF version number
.long 0 # Offset Into Abbrev. Section
.byte 4 # Address Size
.byte 0 # NULL
.Lcu_begin1:
.long 8 # Length of Unit
.short 4 # DWARF version number
.long 0 # Offset Into Abbrev. Section
.byte 4 # Address Size
.byte 0 # NULL
.section .debug_gnu_pubnames,"",@progbits
.long 14
.short 2 # DWARF Version
.long .Lcu_begin0
.long 12 # Compilation Unit Length
.long 0
.long 14
.short 2 # DWARF Version
.long .Lcu_begin1
.long 12 # Compilation Unit Length
.long 0