summaryrefslogtreecommitdiff
path: root/util/riscvtools/spike-elf.ld
diff options
context:
space:
mode:
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>2016-06-10 19:35:14 +0200
committerMartin Roth <martinroth@google.com>2016-06-21 00:10:14 +0200
commit2459f677310efdde229bab3406b2fb5d91f5ec20 (patch)
tree4e5beea313d16348671afff8214a806f66917885 /util/riscvtools/spike-elf.ld
parent057ac4da0ed8dfdc3a6481fe6c490ab9e34476b9 (diff)
downloadcoreboot-2459f677310efdde229bab3406b2fb5d91f5ec20.tar.xz
util/riscvtools: Add script that turns coreboot.rom into an ELF
This is required because SPIKE doesn't support loading flat files yet. Change-Id: If745d78712ca8108b5dcc21591201bc2d3f70b86 Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> Reviewed-on: https://review.coreboot.org/14964 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'util/riscvtools/spike-elf.ld')
-rw-r--r--util/riscvtools/spike-elf.ld11
1 files changed, 11 insertions, 0 deletions
diff --git a/util/riscvtools/spike-elf.ld b/util/riscvtools/spike-elf.ld
new file mode 100644
index 0000000000..341a16ffc2
--- /dev/null
+++ b/util/riscvtools/spike-elf.ld
@@ -0,0 +1,11 @@
+/* See make-spike-elf.sh */
+
+ENTRY(_start);
+SECTIONS
+{
+ . = 0x80000000;
+ _start = .;
+ .data : {
+ *(.data)
+ }
+}