File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed
llvm/test/tools/llvm-objcopy/ELF Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change
1
+ ## This test checks the functionality of options --skip-symbol and --skip-symbols.
1
2
# RUN: yaml2obj %s -o %t.o
2
3
# RUN: echo 'foo[2-3]' > %t.skip.regex
3
4
36
37
# RUN: llvm-objcopy %t.o %t5.o --set-symbol-visibility='foo*'=internal --wildcard \
37
38
# RUN: --skip-symbol=foo1 --skip-symbol=foo2 --skip-symbols=%t.symbol.list
38
39
# RUN: llvm-readelf -s %t5.o | FileCheck %s --check-prefix=BOTH
39
- ## All the symbols are skipped
40
+ ## All the symbols are skipped.
40
41
# BOTH-DAG: GLOBAL HIDDEN 1 foo1
41
42
# BOTH-DAG: GLOBAL HIDDEN 1 foo2
42
43
# BOTH-DAG: GLOBAL HIDDEN 1 foo3
43
44
44
- ## Check that using an invalid symbol pattern generates an error.
45
+ ## Check that using an invalid symbol name regex generates an error.
45
46
# RUN: echo '*.' > %t.symbols.regex
46
47
# RUN: not llvm-objcopy %t.o --skip-symbols=%t.symbols.regex --regex 2>&1 | \
47
48
# RUN: FileCheck %s --check-prefix=SYMBOL
@@ -61,18 +62,18 @@ FileHeader:
61
62
Type: ET_REL
62
63
Machine: EM_X86_64
63
64
Sections:
64
- - Name: .text
65
- Type: SHT_PROGBITS
65
+ - Name: .text
66
+ Type: SHT_PROGBITS
66
67
Symbols:
67
68
- Name: foo1
68
69
Section: .text
69
- Binding: STB_GLOBAL
70
- Other: [ STV_HIDDEN ]
70
+ Binding: STB_GLOBAL
71
+ Other: [ STV_HIDDEN ]
71
72
- Name: foo2
72
73
Section: .text
73
- Binding: STB_GLOBAL
74
- Other: [ STV_HIDDEN ]
74
+ Binding: STB_GLOBAL
75
+ Other: [ STV_HIDDEN ]
75
76
- Name: foo3
76
77
Section: .text
77
- Binding: STB_GLOBAL
78
- Other: [ STV_HIDDEN ]
78
+ Binding: STB_GLOBAL
79
+ Other: [ STV_HIDDEN ]
You can’t perform that action at this time.
0 commit comments