summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2022-02-26 17:06:35 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2022-02-26 17:07:46 +0100
commitfe32260decf2aed704969e283135182e0170a97c (patch)
tree287391ab811a182d95f46c6d0d1fc0365729e67b /mk
parentef120261910bfb46f25a168f26043ff380ab26b0 (diff)
riscv64: add support for nommu target systems
Diffstat (limited to 'mk')
-rw-r--r--mk/vars.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/vars.mk b/mk/vars.mk
index 02cc07a42..2be0c33cb 100644
--- a/mk/vars.mk
+++ b/mk/vars.mk
@@ -171,9 +171,9 @@ endif
endif
ifeq ($(ADK_TARGET_BINFMT_FLAT),y)
-TARGET_LDFLAGS+= -Wl,-elf2flt
-TARGET_CFLAGS+= -Wl,-elf2flt
-TARGET_CXXFLAGS+= -Wl,-elf2flt
+TARGET_LDFLAGS+= -Wl,-elf2flt=-r
+TARGET_CFLAGS+= -Wl,-elf2flt=-r
+TARGET_CXXFLAGS+= -Wl,-elf2flt=-r
endif
ifeq ($(ADK_TARGET_BINFMT_FLAT_SEP_DATA),y)