File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
llvm/test/tools/llvm-objcopy/ELF Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 31
31
# RS-SYM-DAG: foo2
32
32
# RS-SYM-DAG: foo3
33
33
34
+ ## Check the functionality when using skip options multiple times.
35
+ # RUN: echo "foo3" > %t.symbol.list
36
+ # RUN: llvm-objcopy %t.o %t5.o --set-symbol-visibility='foo*'=internal --wildcard \
37
+ # RUN: --skip-symbol=foo1 --skip-symbol=foo2 --skip-symbols=%t.symbol.list
38
+ # RUN: llvm-readelf -s %t5.o | FileCheck %s --check-prefix=BOTH
39
+ ## All the symbols are skipped
40
+ # BOTH-DAG: GLOBAL HIDDEN 1 foo1
41
+ # BOTH-DAG: GLOBAL HIDDEN 1 foo2
42
+ # BOTH-DAG: GLOBAL HIDDEN 1 foo3
43
+
34
44
## Check that using an invalid symbol pattern generates an error.
35
45
# RUN: echo '*.' > %t.symbols.regex
36
46
# RUN: not llvm-objcopy %t.o --skip-symbols=%t.symbols.regex --regex 2>&1 | \
You can’t perform that action at this time.
0 commit comments