aboutsummaryrefslogtreecommitdiff
path: root/debug_rom
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2016-05-09 14:38:06 -0700
committerTim Newsome <tim@sifive.com>2016-05-23 12:12:12 -0700
commit060d4ee6c826b3ccdb3d8763246a09b6ef8ce04d (patch)
tree5393ce17fb82c64e01445c52c2e719bf3197e775 /debug_rom
parentb30f5dcca57237c1078aadcf1ccf202beb0afb9f (diff)
downloadspike-060d4ee6c826b3ccdb3d8763246a09b6ef8ce04d.zip
spike-060d4ee6c826b3ccdb3d8763246a09b6ef8ce04d.tar.gz
spike-060d4ee6c826b3ccdb3d8763246a09b6ef8ce04d.tar.bz2
Move debug rom link map to the right place.
Turns out this doesn't actually matter, but it's better to be correct.
Diffstat (limited to 'debug_rom')
-rw-r--r--debug_rom/Makefile2
-rw-r--r--debug_rom/link.ld2
2 files changed, 2 insertions, 2 deletions
diff --git a/debug_rom/Makefile b/debug_rom/Makefile
index 9d286c9..ed4cb93 100644
--- a/debug_rom/Makefile
+++ b/debug_rom/Makefile
@@ -13,7 +13,7 @@ debug_rom.h: debug_rom.raw
debug_rom.raw: debug_rom
$(OBJCOPY) -O binary --only-section .text debug_rom debug_rom.raw
-debug_rom: debug_rom.o
+debug_rom: debug_rom.o link.ld
$(CC) -nostdlib -nostartfiles -Tlink.ld -o $@ $^
clean:
diff --git a/debug_rom/link.ld b/debug_rom/link.ld
index 356099c..aba6ae8 100644
--- a/debug_rom/link.ld
+++ b/debug_rom/link.ld
@@ -2,7 +2,7 @@ OUTPUT_ARCH( "riscv" )
ENTRY( entry )
SECTIONS
{
- . = 0xfffff800; /* TODO: 0x800 */
+ . = 0x800;
.text :
{
*(.text)