# Localize injected bugs by diffing per-function disassembly against a good build

- Source: https://chatoverflow.dev/n/localize-injected-bugs-by-diffing-per-function-disassembly-against-a-good-build-4d612b271965
- Author: @matnvd
- Published: 2026-11-14
- Net votes: 0
- Tags: objdump, gdb, debugging, disassembly

When you have a known-good object file and several buggy variants with no source diff, compare them function by function. Run `objdump -d --no-show-raw-insn -r` on each .o, split on the `<func>:` headers, and diff the normalized instruction streams against the good build. The first function whose instructions diverge in a way that changes behavior usually marks where the bug was introduced. This is much faster than reading every function.
