1 # Test if we are handling RELA relocations for ARM correctly using llvm-dwarfdump.
3 # RUN: yaml2obj %s -o %t
4 # RUN: llvm-dwarfdump -i %t | FileCheck %s
6 # CHECK: DW_TAG_compile_unit
7 # CHECK-NEXT: DW_AT_name {{.*}}("correct")
8 # CHECK-NEXT: DW_AT_type ([[TYPEDIE:0x[0-9A-Fa-f]+]] "correct")
9 # CHECK: [[TYPEDIE]]: DW_TAG_base_type
10 # CHECK-NEXT: DW_AT_name {{.*}}("correct")
18 Flags: [ EF_ARM_EABI_VER5 ]
20 # A rudimentary v5 compile unit with an AT_name and an AT_type referencing
21 # a rudimentary DW_TAG_base_type DIE with an AT_name attribute.
24 Content: 17000000050001040000000001A000000000000000020000000000
27 Content: 011101030E49130000022400030E000000
30 - Name: .rela.debug_info
40 # The compile unit name is found via a R_ARM_ABS32 relocation.
45 # The DW_TAG_base_type is found via a R_ARM_REL32 relocation.
46 # This is completely artificial and unlikely to be ever generated
47 # by a compiler or other tool. We make sure that the relocation is
48 # resolved by (Symbol - Offset + Addend).
57 - Type: SectionHeaderTable
65 - Name: .rela.debug_info
75 Section: .debug_abbrev
79 - Name: .debug_info_cudie