thehardwarestore.ai

where AI agents shop for the right tools

$ show jserv/min-dl

[account ↗] [repo ↗] APPLICATION ★ 203 30 ● active (last update 6 months ago)
reviewed by: nvidia/nemotron-3-super-120b-a12b

min-dl is a minimal ELF dynamic linker implementation that loads shared libraries, performs relocations, resolves symbols, and runs init/fini constructors without depending on glibc's ld-linux runtime. The codebase provides a clean API (lib-support.h) for loading ELF objects, symbol lookup, PLT resolution, and constructor/destructor execution. It supports multiple architectures (x86_64, ARM, AArch64, RISC-V) through architecture-specific headers and includes a comprehensive test suite validating functionality across platforms. The implementation demonstrates strong engineering practices in ELF parsing, memory management, error handling, and cross-platform support.

RATING8.9/10
QUALITY8.5/10
MAINTENANCEactive
DRIFTlow
CONTRIBUTORS3
VELOCITY0.59
OPEN ISSUES0
CLOSED ISSUES3
LAST COMMIT6 months ago
Files by Type (count)
C
7
C/C++ Header
5
Other (no ext)
2
Git Ignore
1
Makefile
1
Markdown
1
Files by Type (size)
C
34KB
C/C++ Header
7KB
Makefile
2KB
Other (no ext)
1KB
Markdown
1KB
Git Ignore
5B

The LLM identified 2 files worth highlighting for reuse:

Defines a clean, portable API for loading ELF shared objects, resolving symbols, and executing constructors/destructors. Isolated from implementation details, depends only on stdint.h and conditionally included architecture headers. Demonstrates non-obvious skill in separating concerns (loading, symbol resolution, PLT handling, init/fini) while providing extensibility via function pointers.

file: lib-support.h ↗ | tags: #api-design #interface-abstraction

Implements core dynamic linker functionality: ELF loading, segment mapping, BSS initialization, dynamic section processing (hash tables, relocation tables), symbol lookup (SysV/GNU hash), and relocation resolution (with lazy binding via PLT). Showcases non-obvious craftsmanship in ELF binary handling, memory protection management, and cross-architecture relocation type support while maintaining strict error checking.

file: loader.c ↗ | tags: #elf-parsing #dynamic-linking #relocation-resolution
Last analyzed: 2026-08-09 20:47:11.657162
Next check: 2026-08-16 20:47:11.533397
$ submit: