summaryrefslogtreecommitdiff
path: root/util/riscv/spike-elf.ld
diff options
context:
space:
mode:
Diffstat (limited to 'util/riscv/spike-elf.ld')
-rw-r--r--util/riscv/spike-elf.ld15
1 files changed, 15 insertions, 0 deletions
diff --git a/util/riscv/spike-elf.ld b/util/riscv/spike-elf.ld
new file mode 100644
index 0000000000..44114f7cad
--- /dev/null
+++ b/util/riscv/spike-elf.ld
@@ -0,0 +1,15 @@
+/* See make-spike-elf.sh */
+
+ENTRY(_start);
+SECTIONS
+{
+ . = 0x80000000;
+ _start = .;
+ .data : {
+ *(.data)
+ }
+
+ tohost = .;
+ . = . + 8;
+ fromhost = .;
+}