32 lines · plain
1# RUN: yaml2obj %s -o %t2# RUN: not llvm-objcopy -N foo %t %t2 2>&1 | FileCheck %s3 4--- !ELF5FileHeader:6 Class: ELFCLASS647 Data: ELFDATA2LSB8 Type: ET_REL9 Machine: EM_X86_6410Sections:11 - Name: .group12 Type: SHT_GROUP13 Link: .symtab14 AddressAlign: 0x000000000000000415 Info: foo16 Members:17 - SectionOrType: GRP_COMDAT18 - SectionOrType: .text19 - Name: .text20 Type: SHT_PROGBITS21 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]22 Address: 0x100023 AddressAlign: 0x000000000000001024 Size: 6425Symbols:26 - Name: foo27 Type: STT_FUNC28 Section: .text29 Binding: STB_WEAK30 31# CHECK: symbol 'foo' cannot be removed because it is referenced by the section '.group[1]'32