Rev 3556 | 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); |
||
5 | data PT_LOAD FLAGS(6); |
||
6 | } |
||
7 | |||
8 | SECTIONS { |
||
3567 | svoboda | 9 | . = 0x1000 + SIZEOF_HEADERS; |
2979 | svoboda | 10 | |
3567 | svoboda | 11 | .init : { |
2979 | svoboda | 12 | *(.init); |
13 | } :text |
||
14 | .text : { |
||
15 | *(.text); |
||
16 | *(.text.*); |
||
17 | *(.rodata*); |
||
18 | } :text |
||
19 | |||
3567 | svoboda | 20 | .rel.plt : { |
2979 | svoboda | 21 | *(.rel.plt); |
22 | } |
||
23 | /* |
||
24 | *.rel.dyn MUST FOLLOW IMMEDIATELY after .rel.plt |
||
25 | * without alignment gap or DT_REL will be broken |
||
26 | */ |
||
27 | .rel.dyn : { |
||
28 | *(.rel.*); |
||
29 | } :text |
||
30 | |||
3567 | svoboda | 31 | .plt : { |
2979 | svoboda | 32 | *(.plt); |
33 | } :text |
||
34 | |||
3567 | svoboda | 35 | .dynamic : { |
2979 | svoboda | 36 | *(.dynamic); |
37 | } :text |
||
38 | |||
3567 | svoboda | 39 | .dynsym : { |
2979 | svoboda | 40 | *(.dynsym); |
41 | } :text |
||
42 | |||
3567 | svoboda | 43 | .dynstr : { |
2979 | svoboda | 44 | *(.dynstr); |
45 | } :text |
||
46 | |||
3567 | svoboda | 47 | . = . + 0x1000; |
48 | |||
49 | .data : { |
||
2979 | svoboda | 50 | *(.data); |
51 | } :data |
||
52 | |||
3567 | svoboda | 53 | .data.rel : { |
2979 | svoboda | 54 | *(.data.rel); |
55 | } :data |
||
56 | |||
3567 | svoboda | 57 | .got : { |
2979 | svoboda | 58 | *(.got); |
59 | } :data |
||
3567 | svoboda | 60 | .got.plt : { |
2979 | svoboda | 61 | *(.got.plt); |
62 | } :data |
||
63 | |||
64 | .bss : { |
||
65 | *(COMMON); |
||
66 | *(.bss); |
||
67 | } :data |
||
68 | |||
69 | .tdata : { |
||
70 | _tdata_start = .; |
||
71 | *(.tdata); |
||
72 | _tdata_end = .; |
||
73 | } :data |
||
74 | .tbss : { |
||
75 | _tbss_start = .; |
||
76 | *(.tbss); |
||
77 | _tbss_end = .; |
||
78 | } :data |
||
79 | _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss)); |
||
80 | |||
81 | . = ALIGN(0x1000); |
||
82 | _heap = .; |
||
83 | } |