1# RUN: yaml2obj %s -o %t 2# RUN: lldb-test object-file -contents %t | FileCheck %s 3 4## Test that relocations are correctly applied to the .debug_info section on loongarch64. 5 6# CHECK: Name: .debug_info 7# CHECK: Data: ( 8## Before relocation: 9## 0000: 00000000 00000000 00000000 00000000 00000000 10## After relocation: 11# CHECK-NEXT: 0000: 34120000 88776655 44332211 8899AABB CCDDEEFF 12# CHECK-NEXT: ) 13 14--- !ELF 15FileHeader: 16 Class: ELFCLASS64 17 Data: ELFDATA2LSB 18 Type: ET_REL 19 Machine: EM_LOONGARCH 20Sections: 21 - Name: .debug_str 22 Type: SHT_PROGBITS 23 - Name: .debug_info 24 Type: SHT_PROGBITS 25 Content: 0000000000000000000000000000000000000000 26 - Name: .rela.debug_info 27 Type: SHT_RELA 28 Info: .debug_info 29 Relocations: 30 - Offset: 0x0000000000000000 31 Symbol: .debug_str 32 Type: R_LARCH_32 33 Addend: 0x1234 34 - Offset: 0x0000000000000004 35 Symbol: .debug_str 36 Type: R_LARCH_64 37 Addend: 0x1122334455667788 38 - Offset: 0x000000000000000C 39 Symbol: .debug_str 40 Type: R_LARCH_64 41 Addend: 0xFFEEDDCCBBAA9988 42Symbols: 43 - Name: .debug_str 44 Type: STT_SECTION 45 Section: .debug_str 46 - Name: .debug_info 47 Type: STT_SECTION 48 Section: .debug_info 49... 50