[klibc] [PATCH] use "--just-symbols" for compatibility with LLD

Ben Hutchings ben at decadent.org.uk
Thu Aug 20 15:04:40 PDT 2020


On Tue, 2020-08-18 at 14:04 -0700, Bill Wendling wrote:
> LLD uses "-R" as an alias for "-rpath", while LD uses "-R" as an alias
> for "--just-symbols". Use "--just-symbols" so that it's correctly
> supported for both linkers.
> 
> See Linux commit 3c1918c8f54166598195d938564072664a8275b1 (riscv: fix
> vdso build with lld).
> 
> Signed-off-by: Bill Wendling <morbo at google.com>
> ---
>  scripts/Kbuild.klibc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/scripts/Kbuild.klibc b/scripts/Kbuild.klibc
> index 82c74ea7..bfe6edb3 100644
> --- a/scripts/Kbuild.klibc
> +++ b/scripts/Kbuild.klibc
> @@ -361,7 +361,7 @@ quiet_cmd_ld-shared = KLIBCLD $@
>                         $(KLIBCEMAIN) $(KLIBCCRTSHARED)		\
>                         --start-group				\
>                         $(link-deps)				\
> -                       -R $(KLIBCLIBCSHARED)			\
> +                       --just-symbols $(KLIBCLIBCSHARED)	\
>  	               $(KLIBCLIBGCC)				\
>  		       --end-group ;				\
>                        cp -f $@ $@.g ;				\

Applied, thanks.

Ben.

-- 
Ben Hutchings
Logic doesn't apply to the real world. - Marvin Minsky


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://lists.zytor.com/archives/klibc/attachments/20200820/e69a2880/attachment.sig>


More information about the klibc mailing list