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