summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorRonald G. Minnich <rminnich@gmail.com>2014-12-04 19:24:20 +0000
committerPatrick Georgi <pgeorgi@google.com>2014-12-05 09:06:19 +0100
commitc3d49984f6fadbc82bc607851e3236191fe551fd (patch)
tree46032977537fffbc378bab6d2f7d0416e11e12cf /src/arch
parentb1163f8bbcabb965f0769d471fcaba646af82c8a (diff)
downloadcoreboot-c3d49984f6fadbc82bc607851e3236191fe551fd.tar.xz
RISCV: one last little nit to make it build and run
Change-Id: I6e9e1dff09c08079774f7d6e60e67a12760d37b4 Signed-off-by: Ronald G. Minnich <rminnich@gmail.com> Reviewed-on: http://review.coreboot.org/7645 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/riscv/Makefile.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/arch/riscv/Makefile.inc b/src/arch/riscv/Makefile.inc
index 1020fc7d06..242fd404e6 100644
--- a/src/arch/riscv/Makefile.inc
+++ b/src/arch/riscv/Makefile.inc
@@ -41,7 +41,9 @@ bootblock-y += \
$(objcbfs)/bootblock.debug: $(src)/arch/riscv/bootblock.ld $(obj)/ldoptions $$(bootblock-objs)
@printf " LINK $(subst $(obj)/,,$(@))\n"
- $(LD_bootblock) -m elf64lriscv --gc-sections -static -o $@ -L$(obj) $< -T $(src)/arch/riscv/bootblock.ld
+ $(CC_bootblock) $(CFLAGS_bootblock) -nostartfiles -Wl,--gc-sections -static -o $@ -L$(obj) \
+ -T $(src)/arch/riscv/bootblock.ld -Wl,--start-group $(bootblock-objs) \
+ $(LIBGCC_FILE_NAME_bootblock) -Wl,--end-group
endif