[klibc] [PATCH] support llvm's lld

Stanislav Fomichev sdf at fomichev.me
Fri Feb 7 09:57:41 PST 2020


On 01/27, Stanislav Fomichev wrote:
> When using clang+llvm and lld, I get the following error:
> 
> ld.lld: error: -Ttext-segment is not supported. Use --image-base if you intend to set the base address
> 
> Let's test whether linker is lld and use --image-base instead of
> -Ttext-segment. See llvm's rationale for not supporting -Ttext-segment:
> https://github.com/llvm/llvm-project/commit/4dc2fb123dcfe9a97ad6f3a1135053b74efd0bc9
> 
> Note that I've tested x86_64 only, everything else is just a copy-paste.
It's been about two weeks, so gentle ping:
Does the patch look reasonable? Any comments?


More information about the klibc mailing list