Closed HadrienG2 closed 8 months ago
@HadrienG2 can you please check if #12 fixes your issue?
Feels like it might be an lld
bug, TBH.
The examples do build and run with this branch ;)
@thomcc Have you checked out the LLD docs link in the error message ( https://lld.llvm.org/ELF/start-stop-gc ) ? They claim that the issue is that GNU LD retains binary sections when it shouldn't, and that the LLD behavior is the right one. I am not proficient enough with linker things to tell who's right.
@HadrienG2 this is now fixed in v0.1.1 😄
Attempting to compile any divan benchmark with rustc configured to use LLD as a linker results in this sort of errors wall:
Given that many people who care about build performance use LLD as their linker, and IIRC it's destined to become rustc's default linker on Linux once remaining bugs are sorted out, you'll probably want to figure out what is going on here and make your linker tricks work with LLD if at all possible :)