- fixed linker script

git-svn-id: http://moon:8086/svn/mips@179 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
2021-11-22 11:24:14 +00:00
parent 0c06127499
commit 64ad92101d
+11 -8
View File
@@ -13,9 +13,8 @@ INPUT(kernel.o)
DEBUGGER_VAR_SIZE = 0x10000; DEBUGGER_VAR_SIZE = 0x10000;
SECTIONS SECTIONS
{ {
.start : .start ORIGIN(ram) :
{ {
. = ALIGN(4);
start = .; start = .;
entry = .; entry = .;
_entry = .; _entry = .;
@@ -23,23 +22,27 @@ SECTIONS
KEEP (*(.start)) KEEP (*(.start))
} >ram } >ram
.exc_vector ORIGIN(ram) + 0x80 : .exc_vect ORIGIN(ram) + 0x80 :
{ {
KEEP (*(.exc_vect)) KEEP (*(.exc_vect))
} >ram } >ram
.init :
.init ALIGN(4) :
{ {
KEEP (*(.init)) KEEP (*(.init))
} >ram } >ram
.text :
.text ALIGN(4) :
{ {
*(.text) *(.text)
*(.text.*) *(.text.*)
} >ram } >ram
.fini :
.fini ALIGN(4) :
{ {
KEEP (*(.fini)) KEEP (*(.fini))
} >ram } >ram
.rodata : { *(.rodata .rodata.*) } >ram .rodata : { *(.rodata .rodata.*) } >ram
.rodata1 : { *(.rodata1) } >ram .rodata1 : { *(.rodata1) } >ram
.sdata2 : .sdata2 :