Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3772 | svoboda | 1 | ENTRY(__entry) |
2 | |||
3 | PHDRS { |
||
4 | text PT_LOAD FLAGS(5); |
||
5 | data PT_LOAD FLAGS(6); |
||
6 | dynamic PT_DYNAMIC; |
||
7 | } |
||
8 | |||
9 | SECTIONS { |
||
10 | . = 0x4000 + SIZEOF_HEADERS; |
||
11 | |||
12 | .init : { |
||
13 | *(.init); |
||
14 | } :text |
||
15 | .text : { |
||
16 | *(.text); |
||
17 | *(.rodata*); |
||
18 | *(.MIPS.stubs); |
||
19 | } :text |
||
20 | |||
21 | .rel.plt : { |
||
22 | *(.rel.plt); |
||
23 | } |
||
24 | /* |
||
25 | *.rel.dyn MUST FOLLOW IMMEDIATELY after .rel.plt |
||
26 | * without alignment gap or DT_REL will be broken |
||
27 | */ |
||
28 | .rel.dyn : { |
||
29 | *(.rel.*); |
||
30 | } :text |
||
31 | |||
32 | .plt : { |
||
33 | *(.plt); |
||
34 | } :text |
||
35 | |||
36 | .hash : { |
||
37 | *(.hash); |
||
38 | } :text |
||
39 | |||
40 | .dynsym : { |
||
41 | *(.dynsym); |
||
42 | } :text |
||
43 | |||
44 | .dynstr : { |
||
45 | *(.dynstr); |
||
46 | } :text |
||
47 | |||
48 | .dynamic : { |
||
49 | *(.dynamic); |
||
50 | } :text :dynamic |
||
51 | |||
52 | . = . + 0x4000; |
||
53 | |||
54 | .data : { |
||
55 | *(.data); |
||
56 | *(.data.rel*); |
||
57 | } :data |
||
58 | |||
59 | .got : { |
||
60 | _gp = .; |
||
61 | *(.got); |
||
62 | } :data |
||
63 | /* |
||
64 | .tdata : { |
||
65 | _tdata_start = .; |
||
66 | *(.tdata); |
||
67 | _tdata_end = .; |
||
68 | } :data |
||
69 | .tbss : { |
||
70 | _tbss_start = .; |
||
71 | *(.tbss); |
||
72 | _tbss_end = .; |
||
73 | } :data |
||
74 | _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss)); |
||
75 | */ |
||
76 | .sbss : { |
||
77 | *(.scommon); |
||
78 | *(.sbss); |
||
79 | } |
||
80 | .bss : { |
||
81 | *(.bss); |
||
82 | *(COMMON); |
||
83 | } :data |
||
84 | |||
85 | . = ALIGN(0x4000); |
||
86 | _heap = .; |
||
87 | |||
88 | /DISCARD/ : { |
||
89 | *(*); |
||
90 | } |
||
91 | } |