summaryrefslogtreecommitdiff
path: root/examples/noc/test/pendulum.script
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-16 23:25:41 -0300
committerGabriel Schneider <[email protected]>2026-11-17 12:15:01 -0300
commit341882fc1a655137c7a68cdf45c77d5d53c0e522 (patch)
tree9753b572f5d236f9d165d6110fc6d2def7b82720 /examples/noc/test/pendulum.script
parent8ce27cfdbab6d576db36403afbcef9659cb6dbdc (diff)
downloadsketchbook-341882fc1a655137c7a68cdf45c77d5d53c0e522.tar.gz
sketchbook-341882fc1a655137c7a68cdf45c77d5d53c0e522.zip
Load libraries from Zig 0.17.1's incremental linker
`-fincremental` selects Zig's new ELF linker, and 0.17.1's writes DT_VERSYM without DT_VERDEF or DT_VERNEED when nothing is versioned: glibc then reads a null version table at the first relocation against an export, and dlopen faults. When a library has that shape, the host loads a copy of it in an anonymous memory file with DT_VERSYM dropped (nothing in it is versioned, so nothing is lost); the build's own file is never written, and every other library loads as before. The copy is 10 ms for the counter's 28 MB library. Fixed in Zig after 0.17.1 (6d27011edb): the check then never fires. The reload test's second build goes through the new linker. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'examples/noc/test/pendulum.script')
0 files changed, 0 insertions, 0 deletions