From 64ad92101df1e2073e045fb5f193ba9692b51eea Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Mon, 22 Nov 2021 11:24:14 +0000 Subject: [PATCH] - fixed linker script git-svn-id: http://moon:8086/svn/mips@179 a8ebac50-d88d-4704-bea3-6648445a41b3 --- link/ram.ld | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) 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 :