374cf25d9fef0f4882b981d554560f2761b2aba6
[org.ibex.core.git] / src / org / xwt / mips / linker.ld
1 SEARCH_DIR(build)
2 ENTRY(_start)
3 STARTUP(org/xwt/mips/crt0.c.o)
4 INPUT(org/xwt/mips/syscalls.c.o)
5 GROUP(-lc -lgcc)
6 __DYNAMIC  =  0;
7
8 SECTIONS {
9   . = 0x10000;
10   .text : {
11     *(.init)
12     *(.text) *(.rodata) *(.rodata.*) *(.eh_frame)
13     *(.fini)
14   }
15
16   . = ALIGN(4k);
17   .data : {
18     *(.data)
19   }
20   . = ALIGN(16);
21    PROVIDE(_gp = . + 0x8000);
22   .sdata : {
23     *(.rosdata) *(.sdata)
24   }
25   .sbss : {
26     *(.sbss) *(.scommon)
27   }
28   .bss : {
29     *(.bss) *(COMMON)
30   }
31   _end = .;
32 }