Search code examples
clinkerelfportable-executablemach-o

Open source linker written in C


I am building a programming language that I want to cross compile onto OSX, Windows, and Linux natively (into Mach-O, PE, and ELF formats respectively). Are there any linkers, written in C/C++ that I could integrate with my compiler?

Thanks


Solution

  • The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. Despite its name, LLVM has little to do with traditional virtual machines, though it does provide helpful libraries that can be used to build them.

    see if this helps. They have one seperate project for linker also. AFAIK this project is well known in community.