LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

llvm-nm

lists symbols from object files, archives, and executables

TLDR

List symbols in object file
$ llvm-nm [file.o]
copy
Show only external symbols
$ llvm-nm --extern-only [file.o]
copy
Show only undefined symbols
$ llvm-nm --undefined-only [file.o]
copy
Show symbol sizes
$ llvm-nm --print-size [file.o]
copy
Demangle C++ symbols
$ llvm-nm --demangle [file.o]
copy

SYNOPSIS

llvm-nm [options] [file...]

DESCRIPTION

llvm-nm lists symbols from object files, archives, and executables. Drop-in replacement for GNU nm. Shows symbol names, types, and addresses. Useful for debugging linking issues and understanding binary contents.

PARAMETERS

--extern-only

Show only external symbols.
--undefined-only
Show only undefined symbols.
--defined-only
Show only defined symbols.
--demangle
Demangle C++ symbol names.
--print-size
Show symbol sizes.
--no-sort
Don't sort output.
--numeric-sort
Sort by address.

INSTALL

sudo apt install llvm
copy
sudo dnf install llvm
copy
sudo pacman -S llvm
copy
sudo apk add llvm
copy
sudo zypper install llvm
copy
brew install llvm
copy
nix profile install nixpkgs#llvm
copy

SEE ALSO

nm(1), llvm-objdump(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid