2 .\" Man page generated from reStructuredText.
4 .TH "LLVM-STRINGS" "1" "2020-06-26" "10" "LLVM"
6 llvm-strings \- print strings
8 .nr rst2man-indent-level 0
12 level \\n[rst2man-indent-level]
13 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
20 .\" .rstReportMargin pre:
22 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
23 . nr rst2man-indent-level +1
24 .\" .rstReportMargin post:
28 .\" indent \\n[an-margin]
29 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
30 .nr rst2man-indent-level -1
31 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
32 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
36 \fBllvm\-strings\fP [\fIoptions\fP] [\fIinput...\fP]
39 \fBllvm\-strings\fP is a tool intended as a drop\-in replacement for GNU\(aqs
40 \fBstrings\fP, which looks for printable strings in files and writes them
41 to the standard output stream. A printable string is any sequence of four (by
42 default) or more printable ASCII characters. The end of the file, or any other
43 byte, terminates the current sequence.
45 \fBllvm\-strings\fP looks for strings in each \fBinput\fP file specified.
46 Unlike GNU \fBstrings\fP it looks in the entire input file, regardless of
47 file format, rather than restricting the search to certain sections of object
48 files. If "\fB\-\fP" is specified as an \fBinput\fP, or no \fBinput\fP is specified,
49 the program reads from the standard input stream.
60 $ llvm\-strings input.txt
71 Silently ignored. Present for GNU \fBstrings\fP compatibility.
75 .B \-\-bytes=<length>, \-n
76 Set the minimum number of printable ASCII characters required for a sequence of
77 bytes to be considered a string. The default value is 4.
82 Display a summary of command line options.
87 Display an uncategorized summary of command line options.
91 .B \-\-print\-file\-name, \-f
92 Display the name of the containing file before each string.
100 $ llvm\-strings \-\-print\-file\-name test.o test.elf
117 .B \-\-radix=<radix>, \-t
118 Display the offset within the file of each string, before the string and using
119 the specified radix. Valid \fB<radix>\fP values are \fBo\fP, \fBd\fP and \fBx\fP for
120 octal, decimal and hexadecimal respectively.
128 $ llvm\-strings \-\-radix=o test.o
136 $ llvm\-strings \-\-radix=d test.o
144 $ llvm\-strings \-t x test.o
160 Display the version of the \fBllvm\-strings\fP executable.
165 Read command\-line options from response file \fB<FILE>\fP\&.
169 \fBllvm\-strings\fP exits with a non\-zero exit code if there is an error.
170 Otherwise, it exits with code 0.
173 To report bugs, please visit <\fI\%http://llvm.org/bugs/\fP>.
175 Maintained by the LLVM Team (https://llvm.org/).
177 2003-2020, LLVM Project
178 .\" Generated by docutils manpage writer.