Skip to content

Commit 2f441ce

Browse files
committed
Remove work-around for pcrel issue
With rust-lang/rust#62281, rust compiles in mcmodel=medium mode by default and this work-around is no longer needed.
1 parent e247345 commit 2f441ce

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

memory-k210.x

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ _max_hart_id = 1;
22

33
MEMORY
44
{
5-
/* Workaround for the pcrel issue, as described here:
6-
https://github.com/rust-embedded/riscv-rt/issues/25#issuecomment-491518168 */
7-
SRAM : ORIGIN = 0xffffffff80000000, LENGTH = 6M
8-
AI_SRAM : ORIGIN = 0xffffffff80600000, LENGTH = 2M
5+
SRAM : ORIGIN = 0x80000000, LENGTH = 6M
6+
AI_SRAM : ORIGIN = 0x80600000, LENGTH = 2M
97
SRAM_NOCACHE : ORIGIN = 0x40000000, LENGTH = 6M
108
AI_SRAM_NOCACHE : ORIGIN = 0x40600000, LENGTH = 2M
119
}

0 commit comments

Comments
 (0)