IT lexicon › Programming › PLT (Procedure Linkage Table)

PLT (Procedure Linkage Table)

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

Small jump stubs in an ELF program that forward calls to shared-library functions, traditionally resolving the address only on the first call.

A call to printf in a dynamically linked program actually goes to printf@plt. The stub jumps indirectly through a GOT entry. On the first call that entry points back into the dynamic linker, which looks up the real function, patches in its address and forwards the call. After that the jump goes straight through. This is lazy binding, and it existed so that programs importing hundreds of functions would start quickly even if they called only a handful.

The trade-off has shifted. Lazy binding needs a writable GOT, which security people dislike, and the extra indirection costs something on hot calls. Many distributions now build with full RELRO, and GCC gained -fno-plt in 2016 to skip the stub entirely. The Windows equivalent, the import table, has never been lazy by default.

← Back to the lexicon