1 # RUN: yaml2obj %s -o %t
3 # RUN: llvm-objcopy --rename-section=.foo=.bar --set-section-alignment=.foo=16 --set-section-flags=.foo=alloc --set-section-type=.foo=5 %t %t.1
4 # RUN: llvm-readobj -S %t.1 | FileCheck %s
7 # CHECK-NEXT: Type: SHT_HASH (0x5)
9 # CHECK-NEXT: SHF_ALLOC
10 # CHECK-NEXT: SHF_WRITE
12 # CHECK: AddressAlignment:
13 # CHECK-SAME: {{^}} 16
15 # RUN: not llvm-objcopy --rename-section=.foo=.bar --set-section-flags=.bar=alloc %t %t.2 2>&1 | \
16 # RUN: FileCheck %s --check-prefix=SET-BAR1
17 # SET-BAR1: --set-section-flags=.bar conflicts with --rename-section=.foo=.bar
19 # RUN: not llvm-objcopy --rename-section=.foo=.bar --set-section-type=.bar=1 %t %t.2 2>&1 | \
20 # RUN: FileCheck %s --check-prefix=SET-BAR2
21 # SET-BAR2: --set-section-type=.bar conflicts with --rename-section=.foo=.bar