Investigating Dynamic Linking

Investigating Dynamic Linking

in

This is the landing page for deeper study of my dynamic linking adventure while testing my malloc , an educational glibc inspired memory allocator with extensive instrumentation, determinism concerns, and cross-platform linking behavior.

The series are concerned with:

  • how allocator logic is developed, tested, and kept deterministic
  • how allocator interposition works across Linux (ELF) and macOS (Mach-O)

📌 Dynamic Linking Overview, a high-level explanation of why dynamic linking and allocator interposition matter, and how platform differences affect allocator behavior.


The current mainline implementation does not globally interpose on the system allocator. Instead, it prioritizes determinism and testability by abstracting system calls behind a mockable interface.

📌 Current Implementation & Syscall Abstraction, explains how the allocator is developed and tested today.


We touch on: