Home | History | Annotate | Download | only in llvm-objcopy
      1 # RUN: yaml2obj %s > %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   Weak:
     27     - Name:            foo
     28       Type:            STT_FUNC
     29       Section:         .text
     30 
     31 #CHECK: {{.*}}llvm-objcopy{{(\.EXE|\.exe)?}}: Symbol foo cannot be removed because it is referenced by the section .group[1].
     32