50 lines · yaml
1# RUN: yaml2obj %s -o %t2# RUN: lldb-test object-file -contents %t | FileCheck %s3 4## Test that relocations are correctly applied to the .debug_info section on loongarch64.5 6# CHECK: Name: .debug_info7# CHECK: Data: (8## Before relocation:9## 0000: 00000000 00000000 00000000 00000000 0000000010## After relocation:11# CHECK-NEXT: 0000: 34120000 88776655 44332211 8899AABB CCDDEEFF12# CHECK-NEXT: )13 14--- !ELF15FileHeader:16 Class: ELFCLASS6417 Data: ELFDATA2LSB18 Type: ET_REL19 Machine: EM_LOONGARCH20Sections:21 - Name: .debug_str22 Type: SHT_PROGBITS23 - Name: .debug_info24 Type: SHT_PROGBITS25 Content: 000000000000000000000000000000000000000026 - Name: .rela.debug_info27 Type: SHT_RELA28 Info: .debug_info29 Relocations:30 - Offset: 0x000000000000000031 Symbol: .debug_str32 Type: R_LARCH_3233 Addend: 0x123434 - Offset: 0x000000000000000435 Symbol: .debug_str36 Type: R_LARCH_6437 Addend: 0x112233445566778838 - Offset: 0x000000000000000C39 Symbol: .debug_str40 Type: R_LARCH_6441 Addend: 0xFFEEDDCCBBAA998842Symbols:43 - Name: .debug_str44 Type: STT_SECTION45 Section: .debug_str46 - Name: .debug_info47 Type: STT_SECTION48 Section: .debug_info49...50