Binutils & Binary Validation
GNU binutils and ELF tooling for CI/CD: inspect symbols, verify architecture and ABI, check shared-library dependencies, and validate C, C++, and Python artifacts before they ship.
Overview
Overview GNU binutils is the toolchain layer beneath gcc and clang - the utilities that read, transform, and validate compiled artifacts: object files, static archives (.a), shared libraries (.so), and executables. On a C, C++, and Python build farm (CUDA libraries, EDA and firmware pipelines at companies like NVIDIA, AMD, and ASML), these tools are the CI gates that catch a bad binary before it reaches a GPU node or a customer image - wrong architecture, missing symbols, an ABI mismatch, a leaked debug build, or a shared library that will fail to load at runtime.
Key concepts
- readelf
- nm
- objdump
- ldd vs readelf -d
- strip and separate debug
- c++filt and mangling
- symbol versions
- RPATH and patchelf
Interview questions
- A Python C-extension (.so) fails to import with "undefined symbol: _ZN6caffe28TypeMeta...". How do you diagnose and fix it in CI?
- How do you gate a CI pipeline so an artifact for the wrong architecture or ABI never reaches a GPU node?
- At runtime a service dies with "error while loading shared libraries: libfoo.so.3: cannot open shared object file". Walk through the fix.
- How do you verify in CI that a release binary is stripped and leaks no debug paths or secrets?
- A binary built on Ubuntu 22.04 crashes on RHEL 8 with a "GLIBC_2.34 not found" error. How do you catch and prevent this?
- How do you validate a static archive (.a) and confirm hardening flags on a shipped binary?
Sign up free to read the full topic
More Linux topics
Start free on Cariara · Coding problems · System design studio