# HG changeset patch # User Paul Boddie # Date 1435093457 -7200 # Node ID 838dee70e9cfad0e0e69921aadea204ec74258bd # Parent 3cfceb3d8a19742559024cbfb0c8209612d0cc6c Changed the style of the linker script, originally to attempt to provide separate sections for interrupt handlers and for the main program, but the script is currently equivalent to the previous version. diff -r 3cfceb3d8a19 -r 838dee70e9cf stage2/stage2.ld --- a/stage2/stage2.ld Sat Jun 20 00:10:36 2015 +0200 +++ b/stage2/stage2.ld Tue Jun 23 23:04:17 2015 +0200 @@ -1,32 +1,30 @@ OUTPUT_ARCH(mips) ENTRY(_start) -MEMORY -{ - ram : ORIGIN = 0x80010000 , LENGTH = 3M -} SECTIONS { - . = ALIGN(4); - .text : { *(.text*) } > ram + /* Program memory section. */ + + . = 0x80010000; + .text2 : { *(.text*) } . = ALIGN(4); - .rodata : { *(.rodata*) } > ram + .rodata : { *(.rodata*) } . = ALIGN(4); - .sdata : { *(.sdata*) } > ram + .sdata : { *(.sdata*) } . = ALIGN(4); - .data : { *(.data*) *(.scommon*) *(.reginfo*) } > ram + .data : { *(.data*) *(.scommon*) *(.reginfo*) } _gp = ALIGN(16); - .got : { *(.got*) } > ram + .got : { *(.got*) } _got_end = ABSOLUTE(.); . = ALIGN(4); - .sbss : { *(.sbss*) } > ram - .bss : { *(.bss*) } > ram + .sbss : { *(.sbss*) } + .bss : { *(.bss*) } . = ALIGN (4); }