
Version a Shared Library With -Wl,-soname
Build a versioned shared library with -Wl,-soname, upgrade it in place so programs pick up a patch, and ship an ABI break under a new soname.
Everything you need to level up your coding skills.

Build a versioned shared library with -Wl,-soname, upgrade it in place so programs pick up a patch, and ship an ABI break under a new soname.

A shared library has three names: the linker name used at build time, the soname recorded in binaries and the real name of the file. See how they fit together.

Bundle a Linux program with its libraries in one folder that runs from any path, using an $ORIGIN runpath, ldd to collect dependencies and a launcher check.

Build a static library from object files with ar rcs, link a program against it with -L and -l, and see how the linker pulls in only the members it needs.

Clang and LLVM from first compile to production: architecture, diagnostics, sanitizers, clangd, clang-tidy, coverage, ThinLTO, cross-compiling and tools.

Every GCC and Clang hardening flag that matters, with its minimum version, cost and effect on the binary, plus Make, CMake and Meson recipes and checks.

A working tour of GCC attributes and builtins for C: function, variable and type attributes, the builtins worth knowing, and how to keep them portable.

How open-source FPGA toolchains work: Yosys, nextpnr, IceStorm, Trellis and loaders, with a full iCE40 and ECP5 build, constraints, timing and CI.

A complete guide to GNU Make for C: rules, variables, pattern rules, header dependencies, build directories, parallel builds, libraries and debugging.

A full guide to x86 assembler syntax: Intel and AT&T operand order, NASM and GNU as directives, addressing modes, sections, macros, linking and porting.

Build static and shared libraries in C with ar, gcc and ld, then link, version, install and debug them, with a decision table for choosing between the two.

Build a Cortex-M boot path from scratch: vector table, reset handler, linker script, .data and .bss, heap, stack, constructors and debugging, with a Makefile.
We send one email when a new post is published. No spam.