mirror of https://github.com/CrimsonTome/tldr.git
nm: update page (#7758)
parent
692469016e
commit
b14c67fd89
|
@ -1,19 +1,20 @@
|
||||||
# nm
|
# nm
|
||||||
|
|
||||||
> List symbol names in object files.
|
> List symbol names in object files.
|
||||||
|
> More information: <https://manned.org/nm>.
|
||||||
|
|
||||||
- List global (extern) functions in a file (prefixed with T):
|
- List global (extern) functions in a file (prefixed with T):
|
||||||
|
|
||||||
`nm -g {{file.o}}`
|
`nm -g {{path/to/file.o}}`
|
||||||
|
|
||||||
- List only undefined symbols in a file:
|
- List only undefined symbols in a file:
|
||||||
|
|
||||||
`nm -u {{file.o}}`
|
`nm -u {{path/to/file.o}}`
|
||||||
|
|
||||||
- List all symbols, even debugging symbols:
|
- List all symbols, even debugging symbols:
|
||||||
|
|
||||||
`nm -a {{file.o}}`
|
`nm -a {{path/to/file.o}}`
|
||||||
|
|
||||||
- Demangle C++ symbols (make them readable):
|
- Demangle C++ symbols (make them readable):
|
||||||
|
|
||||||
`nm --demangle {{file.o}}`
|
`nm --demangle {{path/to/file.o}}`
|
||||||
|
|
Loading…
Reference in New Issue