Skip to content

Commit 2126bac

Browse files
committed
MicroPython: set _start at address 0x00000000
1 parent dd1a63a commit 2126bac

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

advanced/micropython/port-riscv-emu.py/linker_newlib.ld

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ MEMORY
77

88
SECTIONS
99
{
10+
. = 0x00000000;
11+
1012
.text : ALIGN(4)
1113
{
1214
KEEP(*(.init))

advanced/micropython/port-riscv-emu.py/start_newlib.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.section .text
1+
.section .init
22
.globl _start
33

44
_start:

0 commit comments

Comments
 (0)