Multiboot linking with LLD

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
ch515
Posts: 3
Joined: Thu Aug 06, 2020 7:03 pm

Multiboot linking with LLD

Post by ch515 »

Hi,

I am new to the forum, and I am interested in compiling and linking a multiboot binary with LLVM/clang. The wiki clearly documents how to do this with a GNU compiler and linker, and I think that compiling would be about the same since clang is mostly compatible with gcc. What do you think would be the best way to link the multiboot binary with lld?

Thank you
Octocontrabass
Member
Member
Posts: 5572
Joined: Mon Mar 25, 2013 7:01 pm

Re: Multiboot linking with LLD

Post by Octocontrabass »

Pass "-fuse-ld=lld" to Clang.
Post Reply