brintos

brintos / llvm-project-archived public Read only

0
0
Text · 811 B · 673113f Raw
30 lines · plain
1# RUN: yaml2obj %s -o %t1.o2# RUN: not ld.lld %t1.o -o /dev/null 2>&1 | FileCheck %s3# CHECK: error: {{.*}}1.o:(.text): multiple relocation sections to one section are not supported4 5## The file has two relocation sections referring to a single target section.6## Multiple relocation sections to one section are not supported, check we report this case.7 8--- !ELF9FileHeader:10  Class:     ELFCLASS6411  Data:      ELFDATA2LSB12  Type:      ET_REL13  Machine:   EM_X86_6414Sections:15  - Name:    .text16    Type:    SHT_PROGBITS17    Flags:   [ SHF_ALLOC, SHF_EXECINSTR ]18  - Name:    .rela.text119    Type:    SHT_RELA20    Link:    .symtab21    Info:    .text22  - Name:    .rela.text223    Type:    SHT_RELA24    Link:    .symtab25    Info:    .text26Symbols:27  - Name:    .text28    Type:    STT_SECTION29    Section: .text30