IT lexicon › Programming › Version script

Version script

Programming På svenska → Updated: 2026-11-13

Linker script that defines symbol versions and visibility in shared libraries to maintain API compatibility across library versions.

A version script (GNU ld extension) restricts which C++ symbols are visible outside the library and groups them into versions (libc.so.6 has `GLIBC_2.17`, `GLIBC_2.27`, etc.). Without version scripts, all `extern` symbols are exposed, breaking compatibility with old binaries when the library is upgraded. Version scripts are required for stable ABI in libraries that are frequently updated. Often combined with symbol-visibility compiler flags.

← Back to the lexicon