1LLVM-STRINGS(1)                      LLVM                      LLVM-STRINGS(1)
2
3
4

NAME

6       llvm-strings - print strings
7

SYNOPSIS

9       llvm-strings [options] [input...]
10

DESCRIPTION

12       llvm-strings  is  a  tool  intended  as a drop-in replacement for GNU's
13       strings, which looks for printable strings in files and writes them  to
14       the  standard output stream. A printable string is any sequence of four
15       (by default) or more printable ASCII characters. The end of  the  file,
16       or any other byte, terminates the current sequence.
17
18       llvm-strings  looks  for  strings in each input file specified.  Unlike
19       GNU strings it looks in the entire input file, regardless of file  for‐
20       mat,  rather  than restricting the search to certain sections of object
21       files. If "-" is specified as an input, or no input is  specified,  the
22       program reads from the standard input stream.
23

EXAMPLE

25          $ cat input.txt
26          bars
27          foo
28          wibble blob
29          $ llvm-strings input.txt
30          bars
31          wibble blob
32

OPTIONS

34       --all, -a
35              Silently ignored. Present for GNU strings compatibility.
36
37       --bytes=<length>, -n
38              Set  the  minimum  number of printable ASCII characters required
39              for a sequence of bytes to be considered a string.  The  default
40              value is 4.
41
42       --help, -h
43              Display a summary of command line options.
44
45       --help-list
46              Display an uncategorized summary of command line options.
47
48       --print-file-name, -f
49              Display the name of the containing file before each string.
50
51              Example:
52
53                 $ llvm-strings --print-file-name test.o test.elf
54                 test.o: _Z5hellov
55                 test.o: some_bss
56                 test.o: test.cpp
57                 test.o: main
58                 test.elf: test.cpp
59                 test.elf: test2.cpp
60                 test.elf: _Z5hellov
61                 test.elf: main
62                 test.elf: some_bss
63
64       --radix=<radix>, -t
65              Display  the  offset  within the file of each string, before the
66              string and using the specified radix. Valid <radix>  values  are
67              o, d and x for octal, decimal and hexadecimal respectively.
68
69              Example:
70
71                 $ llvm-strings --radix=o test.o
72                     1054 _Z5hellov
73                     1066 .rela.text
74                     1101 .comment
75                     1112 some_bss
76                     1123 .bss
77                     1130 test.cpp
78                     1141 main
79                 $ llvm-strings --radix=d test.o
80                     556 _Z5hellov
81                     566 .rela.text
82                     577 .comment
83                     586 some_bss
84                     595 .bss
85                     600 test.cpp
86                     609 main
87                 $ llvm-strings -t x test.o
88                     22c _Z5hellov
89                     236 .rela.text
90                     241 .comment
91                     24a some_bss
92                     253 .bss
93                     258 test.cpp
94                     261 main
95
96       --version
97              Display the version of the llvm-strings executable.
98
99       @<FILE>
100              Read command-line options from response file <FILE>.
101

EXIT STATUS

103       llvm-strings  exits  with  a  non-zero  exit code if there is an error.
104       Otherwise, it exits with code 0.
105

BUGS

107       To report bugs, please visit <https://bugs.llvm.org/>.
108

AUTHOR

110       Maintained by the LLVM Team (https://llvm.org/).
111
113       2003-2023, LLVM Project
114
115
116
117
11811                                2023-07-20                   LLVM-STRINGS(1)
Impressum