From 45406a37750df5bc35b76d787a31ce7a75859df8 Mon Sep 17 00:00:00 2001 From: Eddie Antonio Santos Date: Thu, 31 Dec 2015 14:21:42 -0700 Subject: [PATCH] nm: add page (osx and linux) --- pages/linux/nm.md | 19 +++++++++++++++++++ pages/osx/nm.md | 15 +++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 pages/linux/nm.md create mode 100644 pages/osx/nm.md diff --git a/pages/linux/nm.md b/pages/linux/nm.md new file mode 100644 index 0000000000..dffac60d07 --- /dev/null +++ b/pages/linux/nm.md @@ -0,0 +1,19 @@ +# nm + +> List symbol names in object files + +- List global (extern) functions in a file (prefixed with T) + +`nm -g {{file.o}}` + +- Demangle C++ symbols (make them readable) + +`nm --demangle {{file.o}}` + +- List only undefined symbols in a file + +`nm -u {{file.o}}` + +- List all symbols, even debugging symbols + +`nm -a {{file.o}}` diff --git a/pages/osx/nm.md b/pages/osx/nm.md new file mode 100644 index 0000000000..20e162e906 --- /dev/null +++ b/pages/osx/nm.md @@ -0,0 +1,15 @@ +# nm + +> List symbol names in object files (see c++filt) + +- List global (extern) functions in a file (prefixed with T) + +`nm -g {{file.o}}` + +- List only undefined symbols in a file + +`nm -u {{file.o}}` + +- List all symbols, even debugging symbols + +`nm -a {{file.o}}`