Skip to content

Commit

Permalink
[llvm-objcopy][NFC] Consistenly use two dashes for flags in tests.
Browse files Browse the repository at this point in the history
Summary:
As pointed out in D53667, our use of hyphens in flags can be inconsistent, mixing `-` with `--`. This change makes all long style flags use `--`.

Automatically changed via:

```
find test/tools/llvm-objcopy/ELF -type f | xargs sed -i 's/ -\([a-zA-Z]\{3\}\)/ --\1/g'
```

Two false positives were manually fixed/reverted.

Reviewers: jhenderson, espindola, alexshap

Reviewed By: jhenderson

Subscribers: emaste, javed.absar, arichardson, fedor.sergeev, jakehehrlich, llvm-commits

Differential Revision: https://reviews.llvm.org/D56513

llvm-svn: 350944
  • Loading branch information
rupprecht committed Jan 11, 2019
1 parent 863f8c1 commit 298ea3f
Show file tree
Hide file tree
Showing 101 changed files with 203 additions and 199 deletions.
2 changes: 1 addition & 1 deletion llvm/test/tools/llvm-objcopy/ELF/abs-symbol.test
@@ -1,6 +1,6 @@
# RUN: yaml2obj %s > %t
# RUN: llvm-objcopy %t %t2
# RUN: llvm-readobj -symbols %t2 | FileCheck %s
# RUN: llvm-readobj --symbols %t2 | FileCheck %s

!ELF
FileHeader:
Expand Down
4 changes: 2 additions & 2 deletions llvm/test/tools/llvm-objcopy/ELF/add-gnu-debuglink.test
@@ -1,7 +1,7 @@
# RUN: yaml2obj %s > %t
# RUN: printf 0000 > %t.blob
# RUN: llvm-objcopy -add-gnu-debuglink=%t.blob %t %t2
# RUN: llvm-readobj -sections -section-data %t2 | FileCheck %s
# RUN: llvm-objcopy --add-gnu-debuglink=%t.blob %t %t2
# RUN: llvm-readobj --sections --section-data %t2 | FileCheck %s

!ELF
FileHeader:
Expand Down
4 changes: 2 additions & 2 deletions llvm/test/tools/llvm-objcopy/ELF/add-section-remove.test
@@ -1,7 +1,7 @@
# RUN: yaml2obj %s > %t
# RUN: echo 0000 > %t.sec
# RUN: llvm-objcopy -R .test2 -add-section=.test2=%t.sec %t %t2
# RUN: llvm-readobj -file-headers -sections -section-data %t2 | FileCheck %s
# RUN: llvm-objcopy -R .test2 --add-section=.test2=%t.sec %t %t2
# RUN: llvm-readobj --file-headers --sections --section-data %t2 | FileCheck %s

!ELF
FileHeader:
Expand Down
4 changes: 2 additions & 2 deletions llvm/test/tools/llvm-objcopy/ELF/add-section.test
@@ -1,8 +1,8 @@
# RUN: yaml2obj %s > %t
# RUN: llvm-objcopy -O binary -j .test2 %t %t.sec
# RUN: llvm-objcopy -R .test2 %t %t2
# RUN: llvm-objcopy -add-section=.test2=%t.sec %t2 %t3
# RUN: llvm-readobj -file-headers -sections -section-data %t3 | FileCheck %s
# RUN: llvm-objcopy --add-section=.test2=%t.sec %t2 %t3
# RUN: llvm-readobj --file-headers --sections --section-data %t3 | FileCheck %s

!ELF
FileHeader:
Expand Down
4 changes: 2 additions & 2 deletions llvm/test/tools/llvm-objcopy/ELF/armexidx-link.test
@@ -1,6 +1,6 @@
# RUN: yaml2obj %s > %t
# RUN: llvm-objcopy -remove-section=.text.bar %t %t2
# RUN: llvm-readobj -sections %t2 | FileCheck %s
# RUN: llvm-objcopy --remove-section=.text.bar %t %t2
# RUN: llvm-readobj --sections %t2 | FileCheck %s

# CHECK: Index: 2
# CHECK-NEXT: Name: .ARM.exidx.text.foo (1)
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/tools/llvm-objcopy/ELF/auto-remove-shndx.test
@@ -1,5 +1,5 @@
# RUN: %python %p/Inputs/ungzip.py %p/Inputs/many-sections.o.gz > %t
# RUN: llvm-objcopy -R .text -R s0 -R s1 -R s2 -R s3 -R s4 -R s5 -R s6 %t %t2
# RUN: llvm-readobj -sections %t2 | FileCheck --check-prefix=SECS %s
# RUN: llvm-readobj --sections %t2 | FileCheck --check-prefix=SECS %s

# SECS-NOT: Name: .symtab_shndx
10 changes: 5 additions & 5 deletions llvm/test/tools/llvm-objcopy/ELF/basic-archive-copy.test
Expand Up @@ -8,9 +8,9 @@
# RUN: llvm-ar p %t2.a > %t3
# RUN: cmp %t2 %t3

# RUN: llvm-readobj -sections %t2 | FileCheck %s
# RUN: llvm-nm -print-armap %t.a | FileCheck --check-prefix=INDEX-TABLE %s
# RUN: llvm-nm -print-armap %t2.a | FileCheck --check-prefix=INDEX-TABLE %s
# RUN: llvm-readobj --sections %t2 | FileCheck %s
# RUN: llvm-nm --print-armap %t.a | FileCheck --check-prefix=INDEX-TABLE %s
# RUN: llvm-nm --print-armap %t2.a | FileCheck --check-prefix=INDEX-TABLE %s
# Verify that llvm-objcopy has not modifed the input.
# RUN: cmp %t.copy.a %t.a

Expand All @@ -22,8 +22,8 @@
# RUN: llvm-objcopy %t.no.index.a %t2.no.index.a
# RUN: llvm-ar p %t2.no.index.a > %t4

# RUN: llvm-nm -print-armap %t.no.index.a | FileCheck --check-prefix=NO-INDEX-TABLE %s
# RUN: llvm-nm -print-armap %t2.no.index.a | FileCheck --check-prefix=NO-INDEX-TABLE %s
# RUN: llvm-nm --print-armap %t.no.index.a | FileCheck --check-prefix=NO-INDEX-TABLE %s
# RUN: llvm-nm --print-armap %t2.no.index.a | FileCheck --check-prefix=NO-INDEX-TABLE %s
# RUN: cmp %t2 %t4

# NO-INDEX-TABLE-NOT: Archive map
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/tools/llvm-objcopy/ELF/basic-copy.test
@@ -1,6 +1,6 @@
# RUN: yaml2obj %s > %t
# RUN: llvm-objcopy %t %t2
# RUN: llvm-readobj -sections %t2 | FileCheck %s
# RUN: llvm-readobj --sections %t2 | FileCheck %s

!ELF
FileHeader:
Expand Down
6 changes: 3 additions & 3 deletions llvm/test/tools/llvm-objcopy/ELF/basic-keep.test
@@ -1,7 +1,7 @@
# RUN: yaml2obj %s > %t
# RUN: llvm-objcopy -strip-non-alloc -keep-section=.test %t %t2
# RUN: llvm-strip --strip-all -keep-section=.test %t -o %t3
# RUN: llvm-readobj -file-headers -sections %t2 | FileCheck %s
# RUN: llvm-objcopy --strip-non-alloc --keep-section=.test %t %t2
# RUN: llvm-strip --strip-all --keep-section=.test %t -o %t3
# RUN: llvm-readobj --file-headers --sections %t2 | FileCheck %s
# RUN: cmp %t2 %t3

!ELF
Expand Down
4 changes: 2 additions & 2 deletions llvm/test/tools/llvm-objcopy/ELF/basic-only-section.test
@@ -1,7 +1,7 @@
# RUN: yaml2obj %s > %t
# RUN: llvm-objcopy -only-section=.test %t %t2
# RUN: llvm-objcopy --only-section=.test %t %t2
# RUN: llvm-objcopy -j .test %t %t3
# RUN: llvm-readobj -file-headers -sections %t2 | FileCheck %s
# RUN: llvm-readobj --file-headers --sections %t2 | FileCheck %s
# RUN: diff %t2 %t3

!ELF
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/tools/llvm-objcopy/ELF/basic-relocations.test
@@ -1,6 +1,6 @@
# RUN: yaml2obj %s > %t
# RUN: llvm-objcopy %t %t2
# RUN: llvm-readobj -relocations %t2 | FileCheck %s
# RUN: llvm-readobj --relocations %t2 | FileCheck %s

!ELF
FileHeader:
Expand Down
14 changes: 7 additions & 7 deletions llvm/test/tools/llvm-objcopy/ELF/binary-input-arch.test
@@ -1,25 +1,25 @@
# RUN: echo abcd > %t.txt

# RUN: llvm-objcopy -I binary -B aarch64 %t.txt %t.aarch64.o
# RUN: llvm-readobj -file-headers %t.aarch64.o | FileCheck %s --check-prefixes=CHECK,AARCH64,64
# RUN: llvm-readobj --file-headers %t.aarch64.o | FileCheck %s --check-prefixes=CHECK,AARCH64,64

# RUN: llvm-objcopy -I binary -B arm %t.txt %t.arm.o
# RUN: llvm-readobj -file-headers %t.arm.o | FileCheck %s --check-prefixes=CHECK,ARM,32
# RUN: llvm-readobj --file-headers %t.arm.o | FileCheck %s --check-prefixes=CHECK,ARM,32

# RUN: llvm-objcopy -I binary -B i386 %t.txt %t.i386.o
# RUN: llvm-readobj -file-headers %t.i386.o | FileCheck %s --check-prefixes=CHECK,I386,32
# RUN: llvm-readobj --file-headers %t.i386.o | FileCheck %s --check-prefixes=CHECK,I386,32

# RUN: llvm-objcopy -I binary -B i386:x86-64 %t.txt %t.i386_x86-64.o
# RUN: llvm-readobj -file-headers %t.i386_x86-64.o | FileCheck %s --check-prefixes=CHECK,X86-64,64
# RUN: llvm-readobj --file-headers %t.i386_x86-64.o | FileCheck %s --check-prefixes=CHECK,X86-64,64

# RUN: llvm-objcopy -I binary -B powerpc:common64 %t.txt %t.powerpc_common64.o
# RUN: llvm-readobj -file-headers %t.powerpc_common64.o | FileCheck %s --check-prefixes=CHECK,PPC,64
# RUN: llvm-readobj --file-headers %t.powerpc_common64.o | FileCheck %s --check-prefixes=CHECK,PPC,64

# RUN: llvm-objcopy -I binary -B sparc %t.txt %t.sparc.o
# RUN: llvm-readobj -file-headers %t.sparc.o | FileCheck %s --check-prefixes=CHECK,SPARC,32
# RUN: llvm-readobj --file-headers %t.sparc.o | FileCheck %s --check-prefixes=CHECK,SPARC,32

# RUN: llvm-objcopy -I binary -B x86-64 %t.txt %t.x86-64.o
# RUN: llvm-readobj -file-headers %t.x86-64.o | FileCheck %s --check-prefixes=CHECK,X86-64,64
# RUN: llvm-readobj --file-headers %t.x86-64.o | FileCheck %s --check-prefixes=CHECK,X86-64,64

# CHECK: Format:
# AARCH64-SAME: ELF64-aarch64-little
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/tools/llvm-objcopy/ELF/binary-input.test
Expand Up @@ -2,7 +2,7 @@
# Preserve input to verify it is not modified
# RUN: cp %t.x-txt %t-copy.txt
# RUN: llvm-objcopy -I binary -B i386:x86-64 %t.x-txt %t.o
# RUN: llvm-readobj -sections -symbols %t.o | FileCheck %s
# RUN: llvm-readobj --sections --symbols %t.o | FileCheck %s
# RUN: cmp %t.x-txt %t-copy.txt

# CHECK: Sections [
Expand Down
@@ -1,7 +1,7 @@
# RUN: yaml2obj %s -o %t
# RUN: llvm-objcopy -R .text -R .text3 -O binary %t %t2
# RUN: od -Ax -t x1 %t2 | FileCheck %s
# RUN: wc -c %t2 | FileCheck %s -check-prefix=SIZE
# RUN: wc -c %t2 | FileCheck %s --check-prefix=SIZE

!ELF
FileHeader:
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/tools/llvm-objcopy/ELF/binary-remove-end.test
@@ -1,7 +1,7 @@
# RUN: yaml2obj %s -o %t
# RUN: llvm-objcopy -R .text3 -O binary %t %t2
# RUN: od -Ax -v -t x1 %t2 | FileCheck %s
# RUN: wc -c %t2 | FileCheck %s -check-prefix=SIZE
# RUN: wc -c %t2 | FileCheck %s --check-prefix=SIZE

!ELF
FileHeader:
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/tools/llvm-objcopy/ELF/binary-remove-middle.test
@@ -1,7 +1,7 @@
# RUN: yaml2obj %s -o %t
# RUN: llvm-objcopy -R .text2 -O binary %t %t2
# RUN: od -Ax -v -t x1 %t2 | FileCheck %s
# RUN: wc -c %t2 | FileCheck %s -check-prefix=SIZE
# RUN: wc -c %t2 | FileCheck %s --check-prefix=SIZE

!ELF
FileHeader:
Expand Down
@@ -1,6 +1,6 @@
# RUN: yaml2obj %s -o %t
# RUN: llvm-objcopy %t %t2
# RUN: llvm-readobj -program-headers %t2 | FileCheck %s
# RUN: llvm-readobj --program-headers %t2 | FileCheck %s

!ELF
FileHeader:
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/tools/llvm-objcopy/ELF/common-symbol.test
@@ -1,6 +1,6 @@
# RUN: yaml2obj %s > %t
# RUN: llvm-objcopy %t %t2
# RUN: llvm-readobj -symbols %t2 | FileCheck %s
# RUN: llvm-readobj --symbols %t2 | FileCheck %s

!ELF
FileHeader:
Expand Down
Expand Up @@ -4,12 +4,12 @@
# RUN: llvm-objcopy --compress-debug-sections=zlib-gnu %t.o %t-compressed.o
# RUN: llvm-objcopy --decompress-debug-sections %t-compressed.o %t-decompressed.o

# RUN: llvm-objdump -s %t.o -section=.debug_foo | FileCheck %s
# RUN: llvm-objdump -s %t.o --section=.debug_foo | FileCheck %s
# RUN: llvm-objdump -s %t-compressed.o | FileCheck %s --check-prefix=CHECK-COMPRESSED
# RUN: llvm-readobj -relocations -s %t-compressed.o | FileCheck %s --check-prefix=CHECK-FLAGS
# RUN: llvm-readobj -relocations -s %t-decompressed.o | FileCheck %s --check-prefix=CHECK-HEADER
# RUN: llvm-readobj -relocations -s %t.o | FileCheck %s --check-prefix=CHECK-HEADER
# RUN: llvm-objdump -s %t-decompressed.o -section=.debug_foo | FileCheck %s
# RUN: llvm-readobj --relocations -s %t-compressed.o | FileCheck %s --check-prefix=CHECK-FLAGS
# RUN: llvm-readobj --relocations -s %t-decompressed.o | FileCheck %s --check-prefix=CHECK-HEADER
# RUN: llvm-readobj --relocations -s %t.o | FileCheck %s --check-prefix=CHECK-HEADER
# RUN: llvm-objdump -s %t-decompressed.o --section=.debug_foo | FileCheck %s

# CHECK: .debug_foo:
# CHECK-NEXT: 0000 00000000 00000000
Expand Down
Expand Up @@ -4,12 +4,12 @@
# RUN: llvm-objcopy --compress-debug-sections=zlib %t.o %t-compressed.o
# RUN: llvm-objcopy --decompress-debug-sections %t-compressed.o %t-decompressed.o

# RUN: llvm-objdump -s %t.o -section=.debug_foo | FileCheck %s
# RUN: llvm-objdump -s %t.o --section=.debug_foo | FileCheck %s
# RUN: llvm-objdump -s %t-compressed.o | FileCheck %s --check-prefix=CHECK-COMPRESSED
# RUN: llvm-readobj -relocations -s %t-compressed.o | FileCheck %s --check-prefix=CHECK-FLAGS
# RUN: llvm-readobj -relocations -s %t-decompressed.o | FileCheck %s --check-prefix=CHECK-HEADER
# RUN: llvm-readobj -relocations -s %t.o | FileCheck %s --check-prefix=CHECK-HEADER
# RUN: llvm-objdump -s %t-decompressed.o -section=.debug_foo | FileCheck %s
# RUN: llvm-readobj --relocations -s %t-compressed.o | FileCheck %s --check-prefix=CHECK-FLAGS
# RUN: llvm-readobj --relocations -s %t-decompressed.o | FileCheck %s --check-prefix=CHECK-HEADER
# RUN: llvm-readobj --relocations -s %t.o | FileCheck %s --check-prefix=CHECK-HEADER
# RUN: llvm-objdump -s %t-decompressed.o --section=.debug_foo | FileCheck %s

# CHECK: .debug_foo:
# CHECK-NEXT: 0000 00000000 00000000
Expand Down
6 changes: 3 additions & 3 deletions llvm/test/tools/llvm-objcopy/ELF/compress-debug-sections.test
Expand Up @@ -12,9 +12,9 @@
# RUN: llvm-objcopy --decompress-debug-sections %tzg.o %t3.o

# Using redirects to avoid llvm-objdump from printing the filename.
# RUN: llvm-objdump -s -section=.debug_str - < %t.o > %t.txt
# RUN: llvm-objdump -s -section=.debug_str - < %t2.o > %t2.txt
# RUN: llvm-objdump -s -section=.debug_str - < %t3.o > %t3.txt
# RUN: llvm-objdump -s --section=.debug_str - < %t.o > %t.txt
# RUN: llvm-objdump -s --section=.debug_str - < %t2.o > %t2.txt
# RUN: llvm-objdump -s --section=.debug_str - < %t3.o > %t3.txt

# RUN: diff %t.txt %t2.txt
# RUN: diff %t.txt %t3.txt
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/tools/llvm-objcopy/ELF/copy-osabi.test
@@ -1,6 +1,6 @@
# RUN: yaml2obj %s > %t
# RUN: llvm-objcopy %t %t2
# RUN: llvm-readobj -file-headers %t2 | FileCheck %s
# RUN: llvm-readobj --file-headers %t2 | FileCheck %s

## Check that llvm-objcopy preserves the OSABI and ABIVersion fields.
# CHECK: OS/ABI: FreeBSD (0x9)
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/tools/llvm-objcopy/ELF/discard-all.test
Expand Up @@ -3,7 +3,7 @@
# RUN: llvm-objcopy --discard-all %t %t2
# Verify that llvm-objcopy has not modified the input.
# RUN: cmp %t %t1
# RUN: llvm-readobj -symbols %t2 | FileCheck %s
# RUN: llvm-readobj --symbols %t2 | FileCheck %s

# RUN: llvm-objcopy -x %t %t3
# Verify that llvm-objcopy has not modified the input.
Expand Down
10 changes: 5 additions & 5 deletions llvm/test/tools/llvm-objcopy/ELF/drawf-fission.test
@@ -1,8 +1,8 @@
# RUN: llvm-objcopy -extract-dwo %p/Inputs/dwarf.dwo %t
# RUN: llvm-objcopy -strip-dwo %p/Inputs/dwarf.dwo %t2
# RUN: llvm-objcopy -split-dwo=%t3 %p/Inputs/dwarf.dwo %t4
# RUN: llvm-readobj -file-headers -sections %t | FileCheck %s -check-prefix=DWARF
# RUN: llvm-readobj -file-headers -sections %t2 | FileCheck %s -check-prefix=STRIP
# RUN: llvm-objcopy --extract-dwo %p/Inputs/dwarf.dwo %t
# RUN: llvm-objcopy --strip-dwo %p/Inputs/dwarf.dwo %t2
# RUN: llvm-objcopy --split-dwo=%t3 %p/Inputs/dwarf.dwo %t4
# RUN: llvm-readobj --file-headers --sections %t | FileCheck %s --check-prefix=DWARF
# RUN: llvm-readobj --file-headers --sections %t2 | FileCheck %s --check-prefix=STRIP
# RUN: diff %t %t3
# RUN: diff %t2 %t4

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/tools/llvm-objcopy/ELF/dump-section.test
@@ -1,6 +1,6 @@
# RUN: yaml2obj %s > %t
# RUN: llvm-objcopy -O binary -j .text %t %t2
# RUN: llvm-objcopy -O binary -only-section .text %t %t3
# RUN: llvm-objcopy -O binary --only-section .text %t %t3
# RUN: llvm-objcopy --dump-section .text=%t4 %t %t5
# RUN: llvm-objcopy --dump-section .foo=%t6 %t %t7
# RUN: not llvm-objcopy --dump-section .bar=%t8 %t %t9 2>&1 | FileCheck %s --check-prefix=NOBITS
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/tools/llvm-objcopy/ELF/dynamic-relocations.test
@@ -1,5 +1,5 @@
# RUN: llvm-objcopy %p/Inputs/dynrel.elf %t
# RUN: llvm-readobj -sections -section-data %t | FileCheck %s
# RUN: llvm-readobj --sections --section-data %t | FileCheck %s

#CHECK: Name: .rela.plt
#CHECK-NEXT: Type: SHT_RELA
Expand Down
4 changes: 2 additions & 2 deletions llvm/test/tools/llvm-objcopy/ELF/dynamic.test
@@ -1,6 +1,6 @@
# RUN: llvm-objcopy %p/Inputs/dynamic.so %t
# RUN: llvm-readobj -dynamic-table %t | FileCheck %s
# RUN: llvm-readobj -sections %t | FileCheck -check-prefix=LINK %s
# RUN: llvm-readobj --dynamic-table %t | FileCheck %s
# RUN: llvm-readobj --sections %t | FileCheck --check-prefix=LINK %s

#CHECK: DynamicSection [
#CHECK-NEXT: Tag Type Name/Value
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/tools/llvm-objcopy/ELF/dynstr.test
@@ -1,6 +1,6 @@
# RUN: yaml2obj %s > %t
# RUN: llvm-objcopy %t %t2
# RUN: llvm-readobj -sections -section-data %t2 | FileCheck %s
# RUN: llvm-readobj --sections --section-data %t2 | FileCheck %s

!ELF
FileHeader:
Expand Down
4 changes: 2 additions & 2 deletions llvm/test/tools/llvm-objcopy/ELF/dynsym.test
@@ -1,6 +1,6 @@
# RUN: llvm-objcopy %p/Inputs/dynsym.so %t
# RUN: llvm-readobj -dyn-symbols %t | FileCheck %s
# RUN: llvm-readobj -sections %t | FileCheck -check-prefix=LINK %s
# RUN: llvm-readobj --dyn-symbols %t | FileCheck %s
# RUN: llvm-readobj --sections %t | FileCheck --check-prefix=LINK %s

#LINK: Name: .dynsym
#LINK-NEXT: Type: SHT_DYNSYM
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/tools/llvm-objcopy/ELF/elf32be.test
@@ -1,6 +1,6 @@
# RUN: yaml2obj %s > %t
# RUN: llvm-objcopy %t %t2
# RUN: llvm-readobj -file-headers -sections %t2 | FileCheck %s
# RUN: llvm-readobj --file-headers --sections %t2 | FileCheck %s

!ELF
FileHeader:
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/tools/llvm-objcopy/ELF/elf32le.test
@@ -1,6 +1,6 @@
# RUN: yaml2obj %s > %t
# RUN: llvm-objcopy %t %t2
# RUN: llvm-readobj -file-headers -sections %t2 | FileCheck %s
# RUN: llvm-readobj --file-headers --sections %t2 | FileCheck %s

!ELF
FileHeader:
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/tools/llvm-objcopy/ELF/elf64be.test
@@ -1,6 +1,6 @@
# RUN: yaml2obj %s > %t
# RUN: llvm-objcopy %t %t2
# RUN: llvm-readobj -file-headers -sections %t2 | FileCheck %s
# RUN: llvm-readobj --file-headers --sections %t2 | FileCheck %s

!ELF
FileHeader:
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/tools/llvm-objcopy/ELF/empty-section.test
@@ -1,6 +1,6 @@
# RUN: yaml2obj %s > %t
# RUN: llvm-objcopy %t %t2
# RUN: llvm-readobj -sections %t2 | FileCheck %s
# RUN: llvm-readobj --sections %t2 | FileCheck %s

!ELF
FileHeader:
Expand Down
4 changes: 2 additions & 2 deletions llvm/test/tools/llvm-objcopy/ELF/explicit-keep-remove.test
@@ -1,6 +1,6 @@
# RUN: yaml2obj %s > %t
# RUN: llvm-objcopy -R=.test -keep-section=.test %t %t2
# RUN: llvm-readobj -file-headers -sections %t2 | FileCheck %s
# RUN: llvm-objcopy -R=.test --keep-section=.test %t %t2
# RUN: llvm-readobj --file-headers --sections %t2 | FileCheck %s

!ELF
FileHeader:
Expand Down
@@ -1,6 +1,6 @@
# RUN: yaml2obj %s > %t
# RUN: llvm-objcopy -R=.test -only-section=.test %t %t2
# RUN: llvm-readobj -file-headers -sections %t2 | FileCheck %s
# RUN: llvm-objcopy -R=.test --only-section=.test %t %t2
# RUN: llvm-readobj --file-headers --sections %t2 | FileCheck %s

!ELF
FileHeader:
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/tools/llvm-objcopy/ELF/globalize.test
Expand Up @@ -3,7 +3,7 @@
# RUN: --globalize-symbol Local \
# RUN: --globalize-symbol Weak \
# RUN: --globalize-symbol WeakUndef %t %t2
# RUN: llvm-readobj -symbols %t2 | FileCheck %s
# RUN: llvm-readobj --symbols %t2 | FileCheck %s

!ELF
FileHeader:
Expand Down
4 changes: 2 additions & 2 deletions llvm/test/tools/llvm-objcopy/ELF/group-big-endian.test
@@ -1,6 +1,6 @@
# RUN: yaml2obj %s > %t
# RUN: llvm-objcopy -remove-section=.text.bar %t %t2
# RUN: llvm-readobj -elf-section-groups %t2 | FileCheck %s
# RUN: llvm-objcopy --remove-section=.text.bar %t %t2
# RUN: llvm-readobj --elf-section-groups %t2 | FileCheck %s

# In this test the section .text.bar is getting removed, as a result,
# the indices of the sections which go after .text.bar will change,
Expand Down
4 changes: 2 additions & 2 deletions llvm/test/tools/llvm-objcopy/ELF/group-unchanged.test
@@ -1,6 +1,6 @@
# RUN: yaml2obj %s > %t
# RUN: llvm-objcopy -remove-section=.text.bar %t %t2
# RUN: llvm-readobj -elf-section-groups %t2 | FileCheck %s
# RUN: llvm-objcopy --remove-section=.text.bar %t %t2
# RUN: llvm-readobj --elf-section-groups %t2 | FileCheck %s

# In this test the section .text.bar is getting removed, since this section
# goes after all the sections comprising a group, the content of the
Expand Down

0 comments on commit 298ea3f

Please sign in to comment.