Skip to content

Commit

Permalink
Remove work-around for pcrel issue
Browse files Browse the repository at this point in the history
With rust-lang/rust#62281, rust compiles in mcmodel=medium mode
by default and this work-around is no longer needed.
  • Loading branch information
laanwj committed Aug 29, 2019
1 parent b44f2c0 commit 5d3b7ee
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions memory-k210.x
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ _max_hart_id = 1;

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

0 comments on commit 5d3b7ee

Please sign in to comment.