summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>2016-07-07 20:53:28 +0200
committerRonald G. Minnich <rminnich@gmail.com>2016-07-14 18:23:05 +0200
commit8660580567dc056881d690b542bcfa7947b96742 (patch)
tree8ac20b3dfde183c30bb6cb65ed1f2979023b8afd
parentdbd8b54441962ae6f9a4b9aa33c0e7e78b838d1d (diff)
downloadcoreboot-8660580567dc056881d690b542bcfa7947b96742.tar.xz
util/riscvtools: Provide a tohost/fromhost symbols so Spike doesn't hang
See https://github.com/riscv/riscv-isa-sim/issues/54 for more information. Change-Id: I8cda8dc07866d395eb3ce5d94df8232840fa8b82 Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> Reviewed-on: https://review.coreboot.org/15288 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
-rw-r--r--util/riscvtools/spike-elf.ld4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/riscvtools/spike-elf.ld b/util/riscvtools/spike-elf.ld
index 341a16ffc2..44114f7cad 100644
--- a/util/riscvtools/spike-elf.ld
+++ b/util/riscvtools/spike-elf.ld
@@ -8,4 +8,8 @@ SECTIONS
.data : {
*(.data)
}
+
+ tohost = .;
+ . = . + 8;
+ fromhost = .;
}