2003/11/16 08:28:10
[org.ibex.core.git] / src / org / xwt / mips / linker.ld
1 ENTRY(_start)
2 GROUP(-lc -lgcc)
3 __DYNAMIC  =  0;
4
5 SECTIONS {
6   . = 0x10000;
7   .text : {
8     *(.init)
9     *(.text) *(.text.*) 
10     *(.fini)
11   }
12
13   .ctors :
14   {
15     KEEP (*crtbegin.o(.ctors))
16     KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
17     KEEP (*(SORT(.ctors.*)))
18     KEEP (*(.ctors))
19   }
20   
21   .dtors :
22   {
23     KEEP (*crtbegin.o(.dtors))
24     KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
25     KEEP (*(SORT(.dtors.*)))
26     KEEP (*(.dtors))
27   }
28
29   . = ALIGN(4k);
30
31   .rodata : {
32     *(.rodata) *(.rodata.*) *(.eh_frame) *(.jcr)
33   }
34
35   .data : {
36     *(.data)
37   }
38
39   . = ALIGN(16);
40    PROVIDE(_gp = . + 0x8000);
41   .sdata : {
42     *(.rosdata) *(.sdata)
43   }
44   .sbss : {
45     *(.sbss) *(.scommon)
46   }
47   .bss : {
48     *(.bss) *(COMMON)
49   }
50   _end = .;
51 }