Lesson 2 of 9 · 22m
Symbols, Stripping, and Debug Information
Understand what symbols preserve, what stripping removes, what it never removes, and how to reconstruct useful names responsibly.
Stripping is often described as if it removes understanding. It does not. It removes convenient labels. Control flow, constants, imports, compiler idioms, error strings, calling structure, and data relationships remain. The reverse engineer's job is to rebuild names from behavior rather than mourning the symbol table.
Know the symbol layers
ELF files can contain several naming sources:
readelf -sW ./sample | head -30
readelf -Ws ./sample | grep -E ' FUNC| OBJECT' | head -30
nm -an ./sample 2>&1 | head.symtab is the traditional static symbol table and is commonly stripped. .dynsym remains for dynamically linked functions because the loader needs it. Debug information such as DWARF may live in .debug_info, .debug_line, or an external .debug file. Go, Rust, .NET, and Java each carry different metadata habits.
Stripped means unlabeled, not unstructured
Compare these two call sites conceptually:
call authenticate_user
call sub_4017a0The first is convenient; the second is the same behavior waiting for a better name. Rename functions as soon as evidence appears: sub_4017a0 might become maybe_parse_config, then parse_config, then load_tls_config as confidence improves. Your names are hypotheses until multiple independent clues support them.
Compiler metadata leaks intent
Even stripped binaries often preserve:
assertion strings and source file paths
Rust panic messages
Go runtime type names and build metadata
C++ exception frames and RTTI
generated protobuf method names
error strings used as behavioral landmarksA panic like config/server.go:118: missing bind address is a map. It tells you language, package structure, and approximate responsibility without giving you the original source.
Build your own symbol recovery workflow
Start at exports, imports, strings, and entry-point initialization. Name anchor functions first, then walk callers and callees. FLIRT-style signatures, binary diffing against known library builds, and language-specific analyzers can identify library code so you do not reverse engineer memcpy for the tenth time.
Be disciplined about certainty. Use prefixes or comments such as likely_, crypto_, or unknown_ when evidence is weak. Renaming too confidently is worse than leaving a raw address because it contaminates later reasoning.
Field notes
- Exported symbols in shared libraries are intentional contracts; internal symbols stripped from executables are not.
- Debug paths can reveal build machine layout and developer usernames. Treat them as sensitive evidence.
- Position-independent executables make raw addresses relocation-dependent; reason in file offsets and relative displacements.
- A symbol name can lie. Malware and crackmes both use misleading names, and compiler inlining can make names incomplete.
Was this lesson helpful?