brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 59fa273 Raw
42 lines · plain
1# RUN: yaml2obj %s -o - | \2# RUN:   llvm-dwarfdump -debug-frame - | \3# RUN:   FileCheck %s4 5## This checks that we resolve relocations when reading CIE pointers.6## The second FDE references the second CIE. The value for the CIE pointer7## field in the raw section data is 0, thus, to recover the real reference,8## it is required to read the addend from the corresponding RELA relocation.9 10# CHECK: .debug_frame contents:11# CHECK: 00000000 0000000c ffffffff CIE12# CHECK: 00000010 00000014 00000000 FDE cie=00000000 pc=00000000...0000000113# CHECK: 00000028 0000000c ffffffff CIE14# CHECK: 00000038 00000014 00000028 FDE cie=00000028 pc=00000010...0000001115 16--- !ELF17FileHeader:18  Class:   ELFCLASS6419  Data:    ELFDATA2LSB20  Type:    ET_REL21  Machine: EM_X86_6422Sections:23  - Name:    .debug_frame24    Type:    SHT_PROGBITS25    Content: 0C000000FFFFFFFF02000178100000001400000000000000000000000000000001000000000000000C000000FFFFFFFF020001781000000014000000000000001000000000000000010000000000000026  - Name:    .rela.debug_frame27    Type:    SHT_RELA28    Info:    .debug_frame29    Relocations:30      - Offset: 0x000000000000001431        Symbol: .debug_frame32        Type:   R_X86_64_3233      - Offset: 0x000000000000003C34        Symbol: .debug_frame35        Type:   R_X86_64_3236        Addend: 0x2837Symbols:38  - Name:    .debug_frame39    Type:    STT_SECTION40    Section: .debug_frame41...42