Displaying 3 results from an estimated 3 matches for "c99b962fd2a3".
2020 Mar 27
1
[PATCH v2 2/5] Kbuild: support clang's lld
...ONFIG | 2 +-
usr/klibc/arch/ppc/MCONFIG | 2 +-
usr/klibc/arch/ppc64/MCONFIG | 2 +-
usr/klibc/arch/riscv64/MCONFIG | 2 +-
usr/klibc/arch/sparc64/MCONFIG | 2 +-
usr/klibc/arch/x86_64/MCONFIG | 2 +-
8 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/Makefile b/Makefile
index c99b962fd2a3..52d7cd2cf791 100644
--- a/Makefile
+++ b/Makefile
@@ -27,6 +27,9 @@ export NM := $(KLIBCROSS)nm
export OBJCOPY := $(KLIBCROSS)objcopy
export OBJDUMP := $(KLIBCROSS)objdump
+LLD := $(shell $(LD) --version 2>&1 | grep LLD)
+export IMAGE_BASE=$(if $(LLD),--image-base,-Ttext-segment)
+
N...
2020 Mar 27
12
[PATCH 0/5] Clang compatibility patches
This is a series of patches for clang compatibility:
- Using flags needed flags and removing unsupported flags.
- Adding support for clang's LLD linker.
- Removing a variety of warnings.
Bill Wendling (3):
[klibc] Kbuild: use "libc.a" with clang
[klibc] Kbuild: Add "-fcommon" for clang builds
[klibc] Clean up clang warnings
Michael Davidson (1):
[klibc] Kbuild:
2020 Jan 27
4
[PATCH] support llvm's lld
...NFIG | 2 +-
usr/klibc/arch/s390/MCONFIG | 2 +-
usr/klibc/arch/sh/MCONFIG | 2 +-
usr/klibc/arch/sparc/MCONFIG | 2 +-
usr/klibc/arch/sparc64/MCONFIG | 2 +-
usr/klibc/arch/x86_64/MCONFIG | 2 +-
17 files changed, 24 insertions(+), 17 deletions(-)
diff --git a/Makefile b/Makefile
index c99b962fd2a3..924c9fbe8de4 100644
--- a/Makefile
+++ b/Makefile
@@ -27,6 +27,13 @@ export NM := $(KLIBCROSS)nm
export OBJCOPY := $(KLIBCROSS)objcopy
export OBJDUMP := $(KLIBCROSS)objdump
+LLD := $(shell $(LD) --version 2>&1 | grep -q LLD && echo true || echo false)
+ifeq ($(LLD),true)
+ exp...