vlink

A portable linker for multiple file formats.
About vlink
Source text release
Compilation notes
Last release binaries
Daily snapshot binaries
vlink docs (pdf)

vlink is a portable linker, written in ANSI-C, that can read and write a wide range of object- and executable file formats. It can be used to link a specific target format from several different input file formats, or for converting, stripping and manipulating files.

The linker can be controlled by GNU-style linker scripts to generate absolute code, but it also runs very well with default rules to create relocatable executables, as required by AmigaOS, Atari TOS or MorphOS.

Of course there may be technical restrictions that object files of different architectures cannot be merged, because of incompatible relocation types or differing endianess. But in theory everything is possible!

This is 100% human-made software intended for human developers. The license strictly forbids that any part of the vlink distribution (including the program binary, the source text and the documentation) is being used for training or improving machine learning algorithms (AI).

Refer to the full license text in the documentation.

Currently the following object and executable file formats are supported by vlink:
  • a.out generic
  • a.out Jaguar (M68k with support for RISC relocations)
  • a.out MiNT (embedded in Atari TOS format)
  • a.out NetBSD/68k (4k and 8k pages)
  • a.out NetBSD/386
  • a.out PC/386
  • a.out Sun/010 (also Amiga/Atari 68000)
  • a.out Sun/020 (also Amiga/Atari 68020+)
  • AmigaOS hunk format
  • Apple OMF format (Apple IIgs)
  • Atari TOS/DRI format
  • EHF, extended hunk format (WarpOS)
  • ELF 32bit ARM little endian
  • ELF 32bit Jaguar RISC big endian
  • ELF 32bit M68k big endian
  • ELF 32bit PowerPC big endian
  • ELF 32bit PowerPC AmigaOS (special dynamic linking rules)
  • ELF 32bit PowerPC MorphOS (relocatable executables)
  • ELF 32bit PowerPC PowerUp (relocatable executables)
  • ELF 32bit x86 little endian
  • ELF 32bit x86 AROS (relocatable executables)
  • ELF 64bit x86_64 little endian
  • o65 binary relocation format V1.3 (6502 and 65816)
  • OS-9/6809 modules (writing only)
  • VOBJ, proprietary versatile object format
And the following binary output formats (usually absolute, without relocation information) are currently supported:
  • AMSDOS format (Amstrad/Schneider CPC)
  • Apple DOS 3.3 binary format (Apple II)
  • Atari 8-bit COM format (400, 600, 800, etc.)
  • BBC Micro/Master (.inf for emulator)
  • Commodore 8-bit PRG format (PET, VIC-20, 64, etc.)
  • Dragon DOS binary files (Dragon 32 and 64)
  • Foenix PGX format (65C02 and 65816)
  • Foenix PGZ format (24 and 32 bit)
  • Intel-hex format (writing only)
  • Motorola S-Records (writing only)
  • Oric machine code file format (Oric-1, Atmos, Telestrat, Pravetz)
  • Raw binaries (writing only)
  • Sinclair QL binary format with QDOS header or XTcc trailer
  • Tandy Color Computer machine language files (CoCo 1, 2 and 3)