1 ## Check --set-section-flags/--set-section-types work with sections added by --add-section.
3 # RUN: yaml2obj %s -o %t
4 # RUN: llvm-objcopy --add-section=foo=/dev/null --set-section-flags=foo=alloc,exclude %t %t.1
5 # RUN: llvm-readobj -S %t.1 | FileCheck %s
8 # CHECK-NEXT: Type: SHT_PROGBITS
10 # CHECK-NEXT: SHF_ALLOC
11 # CHECK-NEXT: SHF_EXCLUDE
12 # CHECK-NEXT: SHF_WRITE
15 # RUN: llvm-objcopy --add-section=foo=/dev/null --set-section-type=foo=7 %t %t.2
16 # RUN: llvm-readobj -S %t.2 | FileCheck %s --check-prefix=CHECK2
19 # CHECK2-NEXT: Type: SHT_NOTE (0x7)
20 # CHECK2-NEXT: Flags [