diff options
author | Bill Wendling <morbo@google.com> | 2020-08-18 14:04:40 -0700 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2020-08-20 20:32:13 +0100 |
commit | c1b82baa78dd67e05897cd53f082c64a9feba7d2 (patch) | |
tree | ae221ff6d870e91d2cb76c0c641736ef59652a6b | |
parent | 23273aa05bdc564eb8ff0565d9df9c3edfffaee9 (diff) | |
download | klibc-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.klibc | 2 |
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 ; \ |