Home
last modified time | relevance | path

Searched refs:strip (Results 1 – 25 of 586) sorted by relevance

12345678910>>...24

/llvm-project-15.0.7/llvm/test/tools/llvm-objcopy/ELF/
H A Dno-strip-all.test1 ## --no-strip-all disables the --strip-all llvm-strip switch.
2 ## It also disables the default --strip-all behaviour.
7 # RUN: llvm-strip %t.o -o %t1.o
10 ## --no-strip-all alone disables stripping.
11 # RUN: llvm-strip --no-strip-all %t.o -o %t2.o
14 ## --no-strip-all wins if last.
15 # RUN: llvm-strip --strip-all --no-strip-all %t.o -o %t3.o
18 ## --strip-all wins if last.
19 # RUN: llvm-strip --no-strip-all --strip-all %t.o -o %t4.o
23 # RUN: llvm-strip --no-strip-all --strip-all --no-strip-all %t.o -o %t5.o
[all …]
H A Dstrip-all.test3 # RUN: llvm-objcopy --strip-all %t %t2
9 # RUN: llvm-strip %t3
13 # RUN: llvm-strip %t4 -o %t5
16 # Verify that the previous llvm-strip's run has not modified the input.
20 # RUN: llvm-strip %t4 -o %t-should-remain-the-same -o %t-should-be-stripped
26 # RUN: llvm-objcopy --strip-all %t.a %t.a
31 # RUN: llvm-strip --strip-all %t7
39 # RUN: llvm-strip -s %t9
42 # Verify that a non-existent symbol table (after first call to llvm-strip)
45 # RUN: llvm-strip --strip-all --keep-symbol=unavailable_symbol %t10
[all …]
H A Dstrip-preserve-arm-attributes.test1 ## This test makes sure that --strip-all and --strip-all-gnu preserve
6 # RUN: llvm-objcopy --strip-all %t %t2
8 # RUN: llvm-objcopy --strip-all-gnu %t %t3
10 # RUN: llvm-strip %t -o %t4
12 # RUN: llvm-strip --strip-all-gnu %t -o %t5
H A Dwildcard-flags.test11 # RUN: not llvm-strip --regex --wildcard %t.o -o %t.err.o 2>&1 \
22 # RUN: llvm-strip --strip-all --keep-section='.f*' %t.o -o %t.ksec.2.o
35 # RUN: llvm-strip --strip-debug --remove-section='.s??tab' %t.o -o %t.rsec.2.o
93 ## --strip-symbol:
94 # RUN: llvm-objcopy --strip-symbol='f*' %t.o %t.stripsym.1.o
97 # RUN: llvm-strip --strip-symbol='f*' %t.o -o %t.stripsym.2.o
100 # RUN: llvm-objcopy -w --strip-symbol='f*' %t.o %t.stripsym.3.o
103 # RUN: llvm-strip -w --strip-symbol='f*' %t.o -o %t.stripsym.4.o
106 ## --strip-symbols:
113 ## --strip-unneeded-symbol:
[all …]
H A Dinvalid-preserve-dates.test18 ## Test that llvm-strip reports a proper error when --preserve-dates is specified
20 # RUN: not llvm-strip --preserve-dates - < %t.foo 2>&1 | FileCheck %s
21 # RUN: not llvm-strip --preserve-dates %t.foo - < %t.foo 2>&1 | FileCheck %s
22 # RUN: not llvm-strip --preserve-dates - %t.foo < %t.foo 2>&1 | FileCheck %s
23 # RUN: not llvm-strip --preserve-dates %t.foo - %t.foo < %t.foo 2>&1 | FileCheck %s
26 # RUN: not llvm-strip --preserve-dates - -o %t.foo < %t.foo 2>&1 | FileCheck %s
27 # RUN: not llvm-strip --preserve-dates %t.foo -o - < %t.foo 2>&1 | FileCheck %s
H A Dstrip-symbol.test2 # RUN: llvm-objcopy --strip-symbol baz -N bar %t %t2
4 # RUN: llvm-strip --strip-symbol baz -N bar %t -o %t3
6 # RUN: llvm-objcopy --regex --strip-symbol '^b.*' -N bar %t %t4
8 # RUN: llvm-strip --regex --strip-symbol '^b.*' -N bar %t -o %t5
13 # RUN: llvm-objcopy --strip-symbols %t-list.txt %t %t6
16 # RUN: llvm-objcopy --regex --strip-symbols %t-list2.txt %t %t7
H A Darchive-unknown-members.test1 ## Show that llvm-objcopy and llvm-strip emit errors when attempting to modify
3 ## --strip-debug so that the section should be removed, and a difference
12 # RUN: not llvm-objcopy --strip-debug %t1.a 2>&1 | FileCheck %s -DARCHIVE=%t1.a
13 # RUN: not llvm-strip --strip-debug %t2.a 2>&1 | FileCheck %s -DARCHIVE=%t2.a
26 # RUN: not llvm-objcopy --strip-debug %/t.thin1.a 2>&1 \
28 # RUN: not llvm-strip --strip-debug %/t.thin2.a 2>&1 \
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DCompileCommandsTests.cpp200 S.strip(Arg); in strip()
290 S.strip("-o"); in TEST()
291 S.strip("-c"); in TEST()
301 S.strip("-W"); in TEST()
310 S.strip("-Wunused"); in TEST()
322 S.strip("-D"); in TEST()
330 S.strip("-Dbar"); in TEST()
334 S.strip("-Dfoo"); in TEST()
337 S.strip("-Dbar=*"); in TEST()
347 S.strip("-include"); in TEST()
[all …]
/llvm-project-15.0.7/llvm/test/tools/llvm-objcopy/MachO/
H A Dstrip-all.test3 # RUN: yaml2obj %p/Inputs/strip-all.yaml -o %t.exec
4 # RUN: yaml2obj %p/Inputs/strip-all-with-dwarf.yaml -o %t.dwarf
11 # RUN: llvm-objcopy --strip-all %t.exec %t.exec.stripped
15 # RUN: llvm-objcopy --strip-all %t.dwarf %t.dwarf.stripped
24 ## "llvm-strip --strip-all" and "llvm-objcopy --strip-all".
25 # RUN: llvm-strip %t.exec -o %t2
26 # RUN: llvm-strip --strip-all %t.exec -o %t3
30 # RUN: llvm-strip %t.dwarf -o %t4
31 # RUN: llvm-strip --strip-all %t.dwarf -o %t5
40 # RUN: llvm-strip %t.fixups -o %t7
[all …]
/llvm-project-15.0.7/llvm/test/tools/llvm-objcopy/
H A Ddash-dash.test11 # RUN: cp -- test-obj --strip-symbol
12 # RUN: cp -- test-obj strip-obj1
13 # RUN: llvm-strip --remove-section=.test strip-obj1 -- --strip-symbol
15 # RUN: llvm-strip --remove-section=.test no-dash-dash1
16 # RUN: cmp -- no-dash-dash1 strip-obj1
17 # RUN: cmp -- no-dash-dash1 --strip-symbol
25 # RUN: cp -- test-obj strip-obj2
26 # RUN: llvm-strip -- strip-obj2 --keep-symbol
28 # RUN: llvm-strip no-dash-dash2
29 # RUN: cmp -- no-dash-dash2 strip-obj2
[all …]
H A Dtool-name.test16 # RUN: ln -s llvm-strip %t/strip.exe
17 # RUN: ln -s llvm-strip %t/gnu-llvm-strip-10
19 # RUN: llvm-strip --help | FileCheck --check-prefix=STRIP %s
20 # RUN: %t/strip.exe --help | FileCheck --check-prefix=STRIP %s
21 # RUN: %t/gnu-llvm-strip-10 --help | FileCheck --check-prefix=STRIP %s
23 # STRIP: OVERVIEW: llvm-strip tool
36 # RUN: ln -s llvm-bitcode-strip %t/llvm-bitcode-strip-10
37 # RUN: ln -s llvm-bitcode-strip %t/bitcode_strip.exe
39 # RUN: llvm-bitcode-strip --help | FileCheck --check-prefix=BITCODE-STRIP %s
40 # RUN: %t/llvm-bitcode-strip-10 --help | FileCheck --check-prefix=BITCODE-STRIP %s
[all …]
H A Dtool-help-message.test7 # RUN: not llvm-objcopy --strip-debug 2>&1 | FileCheck %s --check-prefix=NO-INPUT-FILES
9 # RUN: llvm-strip -h | FileCheck --check-prefix=STRIP-USAGE %s --match-full-lines
10 # RUN: llvm-strip --help | FileCheck --check-prefix=STRIP-USAGE %s --match-full-lines
11 # RUN: not llvm-strip 2>&1 | FileCheck --check-prefix=STRIP-USAGE %s --match-full-lines
12 # RUN: not llvm-strip -- 2>&1 | FileCheck --check-prefix=STRIP-USAGE %s --match-full-lines
13 # RUN: not llvm-strip -abcabc 2>&1 | FileCheck --check-prefix=UNKNOWN-ARG-SHORT %s
14 # RUN: not llvm-strip --abcabc 2>&1 | FileCheck --check-prefix=UNKNOWN-ARG-LONG %s
15 # RUN: not llvm-strip --strip-debug 2>&1 | FileCheck %s --check-prefix=NO-INPUT-FILES
28 # RUN: not llvm-bitcode-strip -abcabc 2>&1 | FileCheck --check-prefix=UNKNOWN-ARG-LONG %s
35 # STRIP-USAGE: USAGE: llvm-strip [options] inputs...
[all …]
H A Dtool-version.test4 # RUN: llvm-strip --version | FileCheck --check-prefix=STRIP %s
5 # RUN: llvm-strip -V | FileCheck --check-prefix=STRIP %s
10 # RUN: llvm-bitcode-strip --version | FileCheck %s
11 # RUN: llvm-bitcode-strip -V | FileCheck %s
17 # STRIP-DAG: GNU strip
H A Dgrouped-options.test5 # RUN: llvm-strip -S -x -o %t-strip-separated %t
6 # RUN: llvm-strip -Sx -o %t-strip-grouped %t
7 # RUN: cmp %t-strip-separated %t-strip-grouped
/llvm-project-15.0.7/llvm/test/tools/llvm-objcopy/COFF/
H A Dstrip-debug.test6 # RUN: llvm-objcopy --strip-debug %t.in.o %t.out.o
10 # Test that --strip-all, --strip-all-gnu, --discard-all and --strip-unneeded,
11 # plus llvm-strip without arguments all produce a similiar set of sections
14 # RUN: llvm-objcopy --strip-all %t.in.o %t.strip-all.o
15 # RUN: llvm-objdump --section-headers %t.strip-all.o | FileCheck %s --check-prefixes=SECTIONS
17 # RUN: llvm-objcopy --strip-all-gnu %t.in.o %t.strip-all-gnu.o
18 # RUN: llvm-objdump --section-headers %t.strip-all-gnu.o | FileCheck %s --check-prefixes=SECTIONS
23 # RUN: llvm-objcopy --discard-all %t.in.o %t.strip-unneeded.o
24 # RUN: llvm-objdump --section-headers %t.strip-unneeded.o | FileCheck %s --check-prefixes=SECTIONS
38 # Test that --strip-debug doesn't remove e.g. unreferenced local symbols.
H A Dstrip-all.test5 # RUN: llvm-objcopy --strip-all %t.in.o %t.out.o
9 # Test that -S, llvm-strip without arguments and --strip-all-gnu produces
10 # output identical to --strip-all above.
14 # RUN: cp %t.in.o %t.out-strip.o
15 # RUN: llvm-strip %t.out-strip.o
16 # RUN: cmp %t.out.o %t.out-strip.o
18 # RUN: llvm-objcopy --strip-all-gnu %t.in.o %t.out-gnu.o
H A Ddiscard-all.test11 RUN: cp %t.in.o %t.strip-x.o
12 RUN: llvm-strip -x %t.strip-x.o
13 RUN: cmp %t.out.o %t.strip-x.o
15 RUN: cp %t.in.o %t.strip-discard-all.o
16 RUN: llvm-strip --discard-all %t.strip-discard-all.o
17 RUN: cmp %t.out.o %t.strip-discard-all.o
/llvm-project-15.0.7/lldb/test/API/lang/objc/hidden-ivars/
H A DTestHiddenIvars.py73 def common_setup(self, strip): argument
75 if strip:
113 def expr(self, strip): argument
114 self.common_setup(strip)
127 if strip:
153 if strip:
166 def frame_var(self, strip): argument
167 self.common_setup(strip)
175 if not strip:
181 if strip:
[all …]
/llvm-project-15.0.7/llvm/test/tools/llvm-objdump/X86/
H A Dsource-interleave-prefix.test54 ;; --prefix-strip needs to be 1. To fix '//extra/Inputs' --prefix-strip
62 ;; Test --prefix-strip value of 0. No effect.
63 ;; SRC_COMPDIR is set to '/Inputs' before and after --prefix-strip 0.
69 ;; SRC_COMPDIR is set to '/Inputs' before --prefix-strip 1.
70 ;; SRC_COMPDIR becomes '' after --prefix-strip 1.
75 ;; Test --prefix-strip value greater than the number of components.
76 ;; SRC_COMPDIR is set to '/Inputs' before --prefix-strip 2.
77 ;; SRC_COMPDIR becomes '' after --prefix-strip 2.
82 ;; Test negative value --prefix-strip. Reports an error.
88 ;; Test text value --prefix-strip. Reports an error.
[all …]
/llvm-project-15.0.7/llvm/docs/CommandGuide/
H A Dllvm-strip.rst1 llvm-strip - object stripping tool
4 .. program:: llvm-strip
9 :program:`llvm-strip` [*options*] *inputs...*
14 :program:`llvm-strip` is a tool to strip sections and symbols from object files.
53 .. option:: --no-strip-all
55 Disable :option:`--strip-all`.
81 .. option:: --strip-all-gnu
84 is equivalent to GNU :program:`strip`'s ``--strip-all`` switch.
86 .. option:: --strip-all, -s
104 .. option:: --strip-unneeded
[all …]
/llvm-project-15.0.7/llvm/test/DebugInfo/
H A Dcheck-debugify-preserves-analyses.ll2 ; RUN: opt -S -strip -strip-dead-prototypes -strip-named-metadata > %t.no_dbg
5 ; RUN: opt -S -strip -strip-dead-prototypes -strip-named-metadata > %t.with_dbg
/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/
H A Dinvariant.group.ll50 %b2 = call i8* @llvm.strip.invariant.group.p0i8(i8* null)
59 %b2 = call i8* @llvm.strip.invariant.group.p0i8(i8* null)
76 %b2 = call i8* @llvm.strip.invariant.group.p0i8(i8* undef)
104 %a3 = call i8* @llvm.strip.invariant.group.p0i8(i8* %a2)
115 %a3 = call i8* @llvm.strip.invariant.group.p0i8(i8* %a2)
116 %b2 = call i8* @llvm.strip.invariant.group.p0i8(i8* %a)
130 %a3 = call i16* @llvm.strip.invariant.group.p0i16(i16* %c1)
177 %a2 = call i8* @llvm.strip.invariant.group.p0i8(i8* %a)
199 %a2 = call i8* @llvm.strip.invariant.group.p0i8(i8* %a)
229 declare i8* @llvm.strip.invariant.group.p0i8(i8*)
[all …]
/llvm-project-15.0.7/llvm/test/tools/llvm-ifs/
H A Dstrip-target.test3 # RUN: llvm-ifs --input-format=ELF --strip-ifs-target --output-ifs=- %p/Inputs/sysv_hash.so | FileC…
4 # RUN: llvm-ifs --input-format=ELF --strip-ifs-arch --strip-ifs-endianness --strip-ifs-bitwidth --o…
5 # RUN: llvm-ifs --input-format=ELF --strip-ifs-arch --output-ifs=- %p/Inputs/sysv_hash.so | FileChe…
6 # RUN: llvm-ifs --input-format=ELF --strip-ifs-endianness --output-ifs=- %p/Inputs/sysv_hash.so | F…
7 # RUN: llvm-ifs --input-format=ELF --strip-ifs-bitwidth --output-ifs=- %p/Inputs/sysv_hash.so | Fil…
/llvm-project-15.0.7/llvm/tools/llvm-objcopy/
H A DStripOpts.td8 HelpText<"Alias for --strip-all">;
9 def no_strip_all : Flag<["--"], "no-strip-all">,
10 HelpText<"Disable --strip-all">;
14 HelpText<"Alias for --strip-debug">;
17 HelpText<"Alias for --strip-debug">;
/llvm-project-15.0.7/llvm/test/tools/llvm-objcopy/wasm/
H A Dbasic-strip.test1 ## Test that debug, name, and producers sections are stripped with --strip-all.
2 ## Other sections (unknown to LLVM, such as foo) are not stripped by --strip-all.
4 # RUN: llvm-strip --strip-all %t
7 ## The default no-arg behavior is the same as --strip-all.
8 # RUN: llvm-strip %t

12345678910>>...24