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