# man > lto-dump-12(1)

---
type: CommandReference
command: lto-dump
mode: man
section: "1"
source: tldr-pages
---

## Quick Reference
- `lto-dump -list file.o` — List all symbols
- `lto-dump -list -demangle file.o` — List with demangled C++ names
- `lto-dump -defined-only -list file.o` — List only defined symbols
- `lto-dump -symbol=main file.o` — Dump details of symbol "main"
- `lto-dump -objects file.o` — Show LTO object details
- `lto-dump -type-stats file.o` — Show type statistics
- `lto-dump -dump-body=main file.o` — Dump gimple body of function "main"
- `lto-dump -help` — Display help

## Name
`lto-dump` — tool for dumping LTO object files

## Synopsis
`lto-dump` [*options*] *lto-file*

## Options

### Listing
- `-list` — dump list of functions and variables
- `-demangle` — dump demangled names
- `-defined-only` — dump only defined symbols
- `-print-value` — dump initial values of variables
- `-symbol=`*SYMBOL* — dump details of a specific symbol

### Sorting
- `-name-sort` — sort symbols alphabetically
- `-size-sort` — sort symbols by size
- `-reverse-sort` — dump symbols in reverse order
- `-no-sort` — dump symbols in order of occurrence

### Object and statistics
- `-objects` — dump details of LTO objects
- `-type-stats` — dump statistics of tree types
- `-tree-stats` — dump statistics of trees
- `-gimple-stats` — dump statistics of gimple statements

### Body dumping
- `-dump-level=`*LEVEL* — optimization level for body dump
- `-dump-body=`*BODY* — dump a specific gimple body

### Other
- `-help` — display help

## See Also
- [gcc(1)](http://localhost/phpMan.php/man/gcc/1/markdown)
- [objdump(1)](http://localhost/phpMan.php/man/objdump/1/markdown)
- [readelf(1)](http://localhost/phpMan.php/man/readelf/1/markdown)