damn wide font ;)
[open-ps2-loader.git] / elfldr / linkfile
blobdcfc42e7c30757d16f152a15a7567cb122cbbc56
1 ENTRY(_start);\r
2 \r
3 SECTIONS {\r
4         .text 0x00090000: {\r
5                 _ftext = . ;\r
6                 *(.text)\r
7                 *(.text.*)\r
8                 *(.gnu.linkonce.t*)\r
9                 KEEP(*(.init))\r
10                 KEEP(*(.fini))\r
11                 QUAD(0)\r
12         }\r
14         PROVIDE(_etext = .);\r
15         PROVIDE(etext = .);\r
17         .reginfo : { *(.reginfo) }\r
19         /* Global/static constructors and deconstructors. */\r
20         .ctors ALIGN(16): {\r
21                 KEEP(*crtbegin*.o(.ctors))\r
22                 KEEP(*(EXCLUDE_FILE(*crtend*.o) .ctors))\r
23                 KEEP(*(SORT(.ctors.*)))\r
24                 KEEP(*(.ctors))\r
25         }\r
26         .dtors ALIGN(16): {\r
27                 KEEP(*crtbegin*.o(.dtors))\r
28                 KEEP(*(EXCLUDE_FILE(*crtend*.o) .dtors))\r
29                 KEEP(*(SORT(.dtors.*)))\r
30                 KEEP(*(.dtors))\r
31         }\r
33         /* Static data.  */\r
34         .rodata ALIGN(128): {\r
35                 *(.rodata)\r
36                 *(.rodata.*)\r
37                 *(.gnu.linkonce.r*)\r
38         }\r
40         .data ALIGN(128): {\r
41                 _fdata = . ;\r
42                 *(.data)\r
43                 *(.data.*)\r
44                 *(.gnu.linkonce.d*)\r
45                 SORT(CONSTRUCTORS)\r
46         }\r
48         .rdata ALIGN(128): { *(.rdata) }\r
49         .gcc_except_table ALIGN(128): { *(.gcc_except_table) }\r
51         _gp = ALIGN(128) + 0x7ff0;\r
52         .lit4 ALIGN(128): { *(.lit4) }\r
53         .lit8 ALIGN(128): { *(.lit8) }\r
55         .sdata ALIGN(128): {\r
56                 *(.sdata)\r
57                 *(.sdata.*)\r
58                 *(.gnu.linkonce.s*)\r
59         }\r
61         _edata = .;\r
62         PROVIDE(edata = .);\r
64         /* Uninitialized data.  */\r
65         .sbss ALIGN(128) : {\r
66                 _fbss = . ;\r
67                 *(.sbss)\r
68                 *(.sbss.*)\r
69                 *(.gnu.linkonce.sb*)\r
70                 *(.scommon)\r
71         }\r
73         .bss ALIGN(128) : {\r
74                 *(.bss)\r
75                 *(.bss.*)\r
76                 *(.gnu.linkonce.b*)\r
77                 *(COMMON)\r
78         }\r
79         _end_bss = .;\r
81         _end = . ;\r
82         PROVIDE(end = .);\r
84         /* Symbols needed by crt0.s.  */\r
85         PROVIDE(_heap_size = -1);\r
86         PROVIDE(_stack = -1);\r
87         PROVIDE(_stack_size = 128 * 1024);\r
88 }\r