brintos

brintos / llvm-project-archived public Read only

0
0
Text · 581 B · 964775e Raw
21 lines · plain
1## According to the ELF gABI, "Currently, an object file may have only one2## section of each type [SHT_SYMTAB and SHT_DYNSYM], but this restriction may be3## relaxed in the future."4## This test shows that we emit an error if we encounter multiple SHT_SYMTAB5## sections.6# RUN: yaml2obj %s -o %t7# RUN: not llvm-objcopy %t /dev/null 2>&1 | FileCheck %s8 9# CHECK: error: found multiple SHT_SYMTAB sections10 11--- !ELF12FileHeader:13  Class:   ELFCLASS6414  Data:    ELFDATA2LSB15  Type:    ET_REL16Sections:17  - Name: .symtab18    Type: SHT_SYMTAB19  - Name: .symtab220    Type: SHT_SYMTAB21