30 lines · plain
1# REQUIRES: arm2# RUN: yaml2obj %s -o %t.o3# RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s4# CHECK: error: unknown relocation (254) against symbol foo5# CHECK-NEXT: error: unknown relocation (255) against symbol foo6 7!ELF8FileHeader:9 Class: ELFCLASS3210 Data: ELFDATA2LSB11 Type: ET_REL12 Machine: EM_ARM13Sections:14 - Name: .text15 Type: SHT_PROGBITS16 Flags: [ SHF_ALLOC ]17 - Name: .rela.text18 Type: SHT_RELA19 Link: .symtab20 Info: .text21 Relocations:22 - Symbol: foo23 Type: 0xfe24 - Symbol: foo25 Type: 0xff26Symbols:27 - Name: foo28 Section: .text29 Binding: STB_GLOBAL30