diff --git a/link/ram.ld b/link/ram.ld index 9d1d944..ed047d1 100644 --- a/link/ram.ld +++ b/link/ram.ld @@ -13,9 +13,8 @@ INPUT(kernel.o) DEBUGGER_VAR_SIZE = 0x10000; SECTIONS { - .start : + .start ORIGIN(ram) : { - . = ALIGN(4); start = .; entry = .; _entry = .; @@ -23,23 +22,27 @@ SECTIONS KEEP (*(.start)) } >ram - .exc_vector ORIGIN(ram) + 0x80 : + .exc_vect ORIGIN(ram) + 0x80 : { KEEP (*(.exc_vect)) } >ram - .init : + + .init ALIGN(4) : { - KEEP (*(.init)) + KEEP (*(.init)) } >ram - .text : + + .text ALIGN(4) : { - *(.text) + *(.text) *(.text.*) } >ram - .fini : + + .fini ALIGN(4) : { KEEP (*(.fini)) } >ram + .rodata : { *(.rodata .rodata.*) } >ram .rodata1 : { *(.rodata1) } >ram .sdata2 :