32 lines · plain
1# REQUIRES: x862# RUN: yaml2obj %s -o %t1.o3# RUN: echo ".global foo; foo:" > %t2.s4# RUN: llvm-mc %t2.s -o %t2.o -filetype=obj -triple x86_64-pc-linux5# RUN: not ld.lld %t1.o %t2.o -o /dev/null 2>&1 | FileCheck %s6# CHECK: error: unknown relocation (152) against symbol foo7# CHECK: error: unknown relocation (153) against symbol foo8 9!ELF10FileHeader:11 Class: ELFCLASS6412 Data: ELFDATA2LSB13 OSABI: ELFOSABI_FREEBSD14 Type: ET_REL15 Machine: EM_X86_6416Sections:17 - Name: .text18 Type: SHT_PROGBITS19 Flags: [ SHF_ALLOC ]20 - Name: .rela.text21 Type: SHT_RELA22 Link: .symtab23 Info: .text24 Relocations:25 - Symbol: foo26 Type: 0x9827 - Symbol: foo28 Type: 0x9929Symbols:30 - Name: foo31 Binding: STB_GLOBAL32