Skip to content

Commit a470b13

Browse files
committed
Adjust description and formatting
1 parent a808003 commit a470b13

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

llvm/test/tools/llvm-objcopy/ELF/skip-symbol.test

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
## This test checks the functionality of options --skip-symbol and --skip-symbols.
12
# RUN: yaml2obj %s -o %t.o
23
# RUN: echo 'foo[2-3]' > %t.skip.regex
34

@@ -36,12 +37,12 @@
3637
# RUN: llvm-objcopy %t.o %t5.o --set-symbol-visibility='foo*'=internal --wildcard \
3738
# RUN: --skip-symbol=foo1 --skip-symbol=foo2 --skip-symbols=%t.symbol.list
3839
# RUN: llvm-readelf -s %t5.o | FileCheck %s --check-prefix=BOTH
39-
## All the symbols are skipped
40+
## All the symbols are skipped.
4041
# BOTH-DAG: GLOBAL HIDDEN 1 foo1
4142
# BOTH-DAG: GLOBAL HIDDEN 1 foo2
4243
# BOTH-DAG: GLOBAL HIDDEN 1 foo3
4344

44-
## Check that using an invalid symbol pattern generates an error.
45+
## Check that using an invalid symbol name regex generates an error.
4546
# RUN: echo '*.' > %t.symbols.regex
4647
# RUN: not llvm-objcopy %t.o --skip-symbols=%t.symbols.regex --regex 2>&1 | \
4748
# RUN: FileCheck %s --check-prefix=SYMBOL
@@ -61,18 +62,18 @@ FileHeader:
6162
Type: ET_REL
6263
Machine: EM_X86_64
6364
Sections:
64-
- Name: .text
65-
Type: SHT_PROGBITS
65+
- Name: .text
66+
Type: SHT_PROGBITS
6667
Symbols:
6768
- Name: foo1
6869
Section: .text
69-
Binding: STB_GLOBAL
70-
Other: [ STV_HIDDEN ]
70+
Binding: STB_GLOBAL
71+
Other: [ STV_HIDDEN ]
7172
- Name: foo2
7273
Section: .text
73-
Binding: STB_GLOBAL
74-
Other: [ STV_HIDDEN ]
74+
Binding: STB_GLOBAL
75+
Other: [ STV_HIDDEN ]
7576
- Name: foo3
7677
Section: .text
77-
Binding: STB_GLOBAL
78-
Other: [ STV_HIDDEN ]
78+
Binding: STB_GLOBAL
79+
Other: [ STV_HIDDEN ]

0 commit comments

Comments
 (0)