63 lines · yaml
1# RUN: yaml2obj %s -o %t2# RUN: lldb-test object-file -contents %t | FileCheck %s3 4## Test that R_ARM_ABS32 relocations are resolved in .debug_info sections on aarch32.5## REL-type relocations store implicit addend as signed values inline.6## We relocate the symbol foo with 4 different addends and bar once in the .debug_info section.7## Results that exceed the 32-bit range or overflow are logged and ignored.8 9# CHECK: Name: .debug_info10# CHECK: Data: (11#12# Addends: Zero Positive Negative Overflow Out-of-range13# 00000000 04030201 D6FFFFFF D5FFFFFF FFFFFF7F14# CHECK-NEXT: 0000: 2A000000 2E030201 00000000 D5FFFFFF FFFFFF7F15# CHECK-NEXT: )16 17--- !ELF18FileHeader:19 Class: ELFCLASS3220 Data: ELFDATA2LSB21 Type: ET_REL22 Machine: EM_ARM23 Flags: [ EF_ARM_EABI_VER5 ]24Sections:25 - Name: .text26 Type: SHT_PROGBITS27 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]28 - Name: .debug_info29 Type: SHT_PROGBITS30 Content: 0000000004030201D6FFFFFFD5FFFFFFFFFFFF7F31 - Name: .rel.debug_info32 Type: SHT_REL33 Info: .debug_info34 Relocations:35 - Offset: 0x036 Symbol: foo37 Type: R_ARM_ABS3238 - Offset: 0x439 Symbol: foo40 Type: R_ARM_ABS3241 - Offset: 0x842 Symbol: foo43 Type: R_ARM_ABS3244 - Offset: 0xC45 Symbol: foo46 Type: R_ARM_ABS3247 - Offset: 0x1048 Symbol: bar49 Type: R_ARM_ABS3250Symbols:51 - Name: .debug_info52 Type: STT_SECTION53 Section: .debug_info54 - Name: foo55 Type: STT_FUNC56 Section: .debug_info57 Value: 0x0000002A58 - Name: bar59 Type: STT_FUNC60 Section: .debug_info61 Value: 0xFF00000062...63