LLVM-STRINGS(1)
π LLVM-STRINGS π
okay bestie, welcome to the LLVM manual pages, and today's main character is llvm-strings, from the LLVM crew. it's giving "find the words hidden inside your files" energy and honestly? iconic. let's get into it π¦
β¨ NAME β¨
llvm-strings β print strings π
β¨ SYNOPSIS β¨
llvm-strings [options] [input...]
β¨ DESCRIPTION β¨
so llvm-strings is a tool that's meant to be a drop-in replacement for GNU's strings, bestie. what it does is look for printable strings inside files and write them straight to the standard output stream. and a printable string? that's literally any sequence of four printable ASCII characters or more β four is the default, we'll get to that β and the sequence gets terminated by the end of the file, or by literally any other byte that shows up. no cap. πΈ
llvm-strings goes looking for strings in each input file you specify. but here's the tea, and it's a big difference from GNU strings: it looks in the entire input file, no matter what the file format is, instead of restricting the search to certain sections of object files like GNU does. so it's thorough. it's committed. it has main character energy.
and if you pass - as an input, or you don't specify any input at all? it reads from the standard input stream. π«Ά
β¨ EXAMPLE β¨
here's the vibe in action, bestie:
$ cat input.txt
bars
foo
wibble blob
$ llvm-strings input.txt
bars
wibble blob
notice how foo did NOT make the cut? that's because it's only three characters and our minimum is four. sorry foo, better luck next time π
β¨ OPTIONS β¨
--all,-aβ Silently ignored. it's just here so GNUstringscompatibility stays slaying. it does nothing. it's decorative. it's a vibe. π--bytes=<length>,-nβ sets the minimum number of printable ASCII characters a sequence of bytes needs before we're willing to call it a string. the default value is4. want shorter strings? lower it. want only the long luxurious ones? raise it. β¨--help,-hβ shows you a summary of the command line options. your little map, bestie π--print-file-name,-fβ puts the name of the containing file in front of every single string, so you always know who said what. so organised.
Example:
$ llvm-strings --print-file-name test.o test.elf
test.o: _Z5hellov
test.o: some_bss
test.o: test.cpp
test.o: main
test.elf: test.cpp
test.elf: test2.cpp
test.elf: _Z5hellov
test.elf: main
test.elf: some_bss
--radix=<radix>,-tβ shows you the offset within the file of each string, printed before the string, using whatever radix you asked for. valid<radix>values areo,dandxβ that's octal, decimal and hexadecimal respectively. three flavors, all delicious. π
Example:
$ llvm-strings --radix=o test.o
1054 _Z5hellov
1066 .rela.text
1101 .comment
1112 some_bss
1123 .bss
1130 test.cpp
1141 main
$ llvm-strings --radix=d test.o
556 _Z5hellov
566 .rela.text
577 .comment
586 some_bss
595 .bss
600 test.cpp
609 main
$ llvm-strings -t x test.o
22c _Z5hellov
236 .rela.text
241 .comment
24a some_bss
253 .bss
258 test.cpp
261 main
--versionβ displays the version of thellvm-stringsexecutable. know your queen's birthday π@<FILE>β reads command-line options from the response file<FILE>. yes, options from a file. we love a delegation moment π
β¨ EXIT STATUS β¨
llvm-strings exits with a non-zero exit code if there's an error. otherwise? it exits with code 0. that's it, that's the whole mood. clean. β
β¨ BUGS β¨
found a bug, bestie? π don't suffer in silence β go report it at <<https://github.com/llvm/llvm-project/labels/tools:llvm-strings/>>. the team will literally thank you. π«Ά
β¨ AUTHOR β¨
maintained by the LLVM Team (https://llvm.org/). they're the ones keeping this whole thing cute and functional. π
β¨ COPYRIGHT β¨
2003-2026, LLVM Project β yeah, they've been at this a while. legends only. π
okay that's the whole page, bestie!! this was LLVM-STRINGS(1), page 22, dated 2026-07-16, straight from the LLVM source. mwah π
β¨π
π¦ where this page comes from
- fedora 44: llvm 22.1.8-4.fc44 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- fedora 44: llvm 22.1.8-4.fc44 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms