brintos

brintos / llvm-project-archived public Read only

0
0
Text · 978 B · aa9efec Raw
29 lines · plain
1# RUN: llvm-mc %s -filetype obj -triple x86_64-pc-linux -o - | \2# RUN:   llvm-dwarfdump -debug-addr - | \3# RUN:   FileCheck %s4 5## This checks that we use DWARFDataExtractor::getRelocatedAddress() to read6## addresses of an address table. In this test, the raw data in the .debug_addr7## section does not contain the full address, thus, it is required to resolve8## a RELA relocation to recover the real value.9 10# CHECK:      .debug_addr contents11# CHECK-NEXT: length = 0x0000000c, format = DWARF32, version = 0x0005, addr_size = 0x08, seg_size = 0x0012# CHECK-NEXT: Addrs: [13# CHECK-NEXT: 0x000000000000002a14# CHECK-NEXT: ]15 16    .text17    .space  0x2a18.Lfoo:19 20    .section .debug_addr,"",@progbits21    .long   .LAddr0end-.LAddr0version   # Length22.LAddr0version:23    .short  5                           # Version24    .byte   8                           # Address size25    .byte   0                           # Segment selector size26.LAddr0table:27    .quad   .Lfoo28.LAddr0end:29