aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <morbo@google.com>2020-08-18 14:04:40 -0700
committerBen Hutchings <ben@decadent.org.uk>2020-08-20 20:32:13 +0100
commitc1b82baa78dd67e05897cd53f082c64a9feba7d2 (patch)
treeae221ff6d870e91d2cb76c0c641736ef59652a6b
parent23273aa05bdc564eb8ff0565d9df9c3edfffaee9 (diff)
downloadklibc-c1b82baa78dd67e05897cd53f082c64a9feba7d2.tar.gz
[klibc] use "--just-symbols" for compatibility with LLD
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@google.com> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r--scripts/Kbuild.klibc2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Kbuild.klibc b/scripts/Kbuild.klibc
index 82c74ea748d93c..bfe6edb3aa0157 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 ; \