1 # RUN: yaml2obj %s > %t
4 # RUN: llvm-objcopy -R .test2 %t %t2
5 # RUN: llvm-readobj --file-headers --sections %t2 | FileCheck %s
7 # Verify that the first run of llvm-objcopy
8 # has not modified the input binary.
11 # RUN: llvm-objcopy --remove-section=.test2 %t1 %t3
14 # RUN: llvm-objcopy --regex --remove-section='.test[0-9]+' %t %t4
15 # RUN: llvm-readobj --file-headers --sections %t4 | FileCheck %s --check-prefix=REGEX
34 # CHECK: SectionHeaderCount: 6
40 # CHECK: Type: SHT_NULL (0x0)
41 # CHECK: Flags [ (0x0)
48 # CHECK: AddressAlignment: 0
54 # CHECK: Type: SHT_PROGBITS (0x1)
55 # CHECK: Flags [ (0x0)
62 # CHECK: AddressAlignment: 0
68 # CHECK: Type: SHT_PROGBITS (0x1)
69 # CHECK: Flags [ (0x0)
76 # CHECK: AddressAlignment: 0
81 # CHECK: Name: .symtab
82 # CHECK: Type: SHT_SYMTAB (0x2)
83 # CHECK: Flags [ (0x0)
90 # CHECK: AddressAlignment: 8
91 # CHECK: EntrySize: 24
95 # CHECK: Name: .strtab
96 # CHECK: Type: SHT_STRTAB (0x3)
97 # CHECK: Flags [ (0x0)
104 # CHECK: AddressAlignment: 1
105 # CHECK: EntrySize: 0
109 # CHECK: Name: .shstrtab
110 # CHECK: Type: SHT_STRTAB (0x3)
111 # CHECK: Flags [ (0x0)
113 # CHECK: Address: 0x0
118 # CHECK: AddressAlignment: 1
119 # CHECK: EntrySize: 0
123 # REGEX: SectionHeaderCount: 4