summaryrefslogtreecommitdiff
path: root/arch/riscv/config.mk
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv/config.mk')
-rw-r--r--arch/riscv/config.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/riscv/config.mk b/arch/riscv/config.mk
index ed9eb0c24c..cc5d8d1ad5 100644
--- a/arch/riscv/config.mk
+++ b/arch/riscv/config.mk
@@ -27,8 +27,8 @@ CFLAGS_EFI += -march=rv64ima -mabi=lp64
EFI_LDS := elf_riscv64_efi.lds
endif
-CONFIG_STANDALONE_LOAD_ADDR = 0x00000000 \
- -T $(srctree)/examples/standalone/riscv.lds
+CONFIG_STANDALONE_LOAD_ADDR = 0x00000000
+LDFLAGS_STANDALONE += -T $(srctree)/examples/standalone/riscv.lds
PLATFORM_CPPFLAGS += -ffixed-gp -fpic
PLATFORM_RELFLAGS += -fno-common -gdwarf-2 -ffunction-sections