1 # RUN: yaml2obj %s -o %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
35 # CHECK: SectionHeaderCount: 6
41 # CHECK: Type: SHT_NULL (0x0)
42 # CHECK: Flags [ (0x0)
49 # CHECK: AddressAlignment: 0
55 # CHECK: Type: SHT_PROGBITS (0x1)
56 # CHECK: Flags [ (0x0)
63 # CHECK: AddressAlignment: 0
69 # CHECK: Type: SHT_PROGBITS (0x1)
70 # CHECK: Flags [ (0x0)
77 # CHECK: AddressAlignment: 0
82 # CHECK: Name: .symtab
83 # CHECK: Type: SHT_SYMTAB (0x2)
84 # CHECK: Flags [ (0x0)
91 # CHECK: AddressAlignment: 8
92 # CHECK: EntrySize: 24
96 # CHECK: Name: .strtab
97 # CHECK: Type: SHT_STRTAB (0x3)
98 # CHECK: Flags [ (0x0)
100 # CHECK: Address: 0x0
105 # CHECK: AddressAlignment: 1
106 # CHECK: EntrySize: 0
110 # CHECK: Name: .shstrtab
111 # CHECK: Type: SHT_STRTAB (0x3)
112 # CHECK: Flags [ (0x0)
114 # CHECK: Address: 0x0
119 # CHECK: AddressAlignment: 1
120 # CHECK: EntrySize: 0
124 # REGEX: SectionHeaderCount: 4