• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1## Check --set-section-flags works with sections added by --add-section.
2
3# RUN: yaml2obj %s -o %t
4# RUN: llvm-objcopy --add-section=foo=/dev/null --set-section-flags=foo=alloc,exclude %t %t.out
5# RUN: llvm-readobj -S %t.out | FileCheck %s
6
7# CHECK:      Name: foo
8# CHECK-NEXT: Type: SHT_PROGBITS
9# CHECK-NEXT: Flags [
10# CHECK-NEXT:   SHF_ALLOC
11# CHECK-NEXT:   SHF_EXCLUDE
12# CHECK-NEXT:   SHF_WRITE
13# CHECK-NEXT: ]
14
15--- !ELF
16FileHeader:
17  Class:   ELFCLASS64
18  Data:    ELFDATA2LSB
19  Type:    ET_EXEC
20  Machine: EM_X86_64
21