Skip to content

Guide to inspecting Linux ELF binaries with readelf, objdump, nm, and ldd for linking and symbol diagnosis.

CCM score
60 of 100
skills.sh installs
806
GitHub stars
303
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers symbol tables, section layout, dynamic dependencies, build IDs, relocations, and binary size analysis
  • Includes command recipes for ldd, nm, readelf, objdump, and size, plus a hardening check for PIE, RELRO, and NX
  • Provides diagnosis flows for "undefined symbol at runtime" and "binary is too large" with symbol-size breakdowns
  • Designed for debugging linker and loader failures on Linux and for bloat analysis of shipped binaries

Install

$ npx -y skills add mohitmishra786/low-level-dev-skills --skill elf-inspection -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

ELF Inspection

Purpose

Guide agents through inspecting Linux ELF binaries: symbol tables, section layout, dynamic linking, debug info, and diagnosing linker errors.

Triggers

  • "What libraries does this binary depend on?"
  • "Why is this binary so large?"
  • "I have an undefined reference or symbol not found at runtime"
  • "How do I check if debug info is in this binary?"
  • "How do I find what symbols a library exports?"
  • "How do I check if a binary is PIE / has RELRO?"

Workflow

1. Quick overview: file and size

file prog                    # type, arch, linkage, stripped or not
size prog                    # section sizes: text, data, bss
size --format=sysv prog      # detailed per-section breakdown

2. Dynamic dependencies: ldd

ldd ./prog                   # show all shared lib dependencies
ldd -v ./prog                # verbose: include symbol versions

# Check why a library is loaded
ldd ./prog | grep libssl

# For a library (not an executable)
ldd ./libfoo.so

If ldd shows not found, the shared library is missing from LD_LIBRARY_PATH or /etc/ld.so.conf.

Fix:

Details

Repository
github.com/mohitmishra786/low-level-dev-skills
Categories
Debugging, CLI & Terminal, Security
First seen
Jun 3, 2026

Questions

What does the elf-inspection skill do?

The elf-inspection skill guides an agent through inspecting Linux ELF executables and shared libraries with readelf, objdump, nm, and ldd. It covers symbol tables, section layout, dynamic dependencies, build IDs, relocation entries, and diagnosing undefined symbol errors.

How do I install the elf-inspection skill?

Run npx -y skills add mohitmishra786/low-level-dev-skills --skill elf-inspection -y in a project. After that, the elf-inspection skill lets the agent check which shared libraries a binary loads and why an undefined symbol appears at runtime.

Where does elf-inspection stand in the Debugging category?

The elf-inspection skill is listed in the Debugging category on Claude Marketplaces. It sits alongside diagnosing-bugs, azure-messaging, safe-debug, systematic-debugging, and sentry-cli. Its focus is binary-level analysis of ELF files rather than general bug hunting.

Is elf-inspection useful for finding why a binary is so large?

Yes, elf-inspection covers binary bloat analysis. It uses size and nm to list section sizes and the largest symbols, and it shows how to compare stripped and unstripped builds of an ELF binary.

More from mohitmishra786/low-level-dev-skills

All 54

Similar to Elf Inspection

More Debugging