Skip to content

Assembly Language Linkers

ScriptScorpion edited this page Aug 1, 2025 · 2 revisions

A linker combines object files (.o, .obj) generated by an assembler into an executable or library. Below are common linkers used in Assembly development.

Popular Linkers:

  1. ld (GNU Linker)
  • Default linker for GCC and GNU toolchains.

  • Supports ELF (Linux), PE (Windows), and other formats.

  • Wikipedia

  1. lld (LLVM linker)
  • High-performance linker from the LLVM project.

  • Faster than GNU ld and supports multiple platforms.

  • Wikipedia

  1. gold (GNU’s faster ld alternative) - outdated
  • Optimized for speed (used in Linux distributions).

  • Supports ELF only.

  • Wikipedia

Choosing a Linker:

Linux/Unix: ld, lld, gold.

Windows: lld.

Cross-platform: lld.

Clone this wiki locally