How to Link Object Files Manually with lld

Today, I want to show you how to link an object file produces with any compiled language into an executable using the LLVM linker lld. I will limit myself to a unix operating system and linking using the musl C standard library. Steps for other systems will be similar. Introduction to Linking Many compilers such as GCC or Clang for C or rustc for Rust, parse the code and convert it to machine instructions, storing the result in object files....

October 14, 2022