Debian Codegraph @

llvm/test/tools/llvm-objcopy/ELF/strip-group-symbol.test

raw
1 # RUN: yaml2obj %s -o %t
2 # RUN: not llvm-objcopy -N foo %t %t2 2>&1 | FileCheck %s
3
4 --- !ELF
5 FileHeader:
6 Class: ELFCLASS64
7 Data: ELFDATA2LSB
8 Type: ET_REL
9 Machine: EM_X86_64
10 Sections:
11 - Name: .group
12 Type: SHT_GROUP
13 Link: .symtab
14 AddressAlign: 0x0000000000000004
15 Info: foo
16 Members:
17 - SectionOrType: GRP_COMDAT
18 - SectionOrType: .text
19 - Name: .text
20 Type: SHT_PROGBITS
21 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
22 Address: 0x1000
23 AddressAlign: 0x0000000000000010
24 Size: 64
25 Symbols:
26 - Name: foo
27 Type: STT_FUNC
28 Section: .text
29 Binding: STB_WEAK
30
31 # CHECK: symbol 'foo' cannot be removed because it is referenced by the section '.group[1]'