Rev 2983 | Rev 3004 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2974 | svoboda | 1 | STARTUP(LIBC_PREFIX/arch/ARCH/src/entry.o) |
2967 | svoboda | 2 | ENTRY(__entry) |
3 | |||
4 | PHDRS { |
||
5 | text PT_LOAD FLAGS(5); |
||
6 | data PT_LOAD FLAGS(6); |
||
7 | } |
||
8 | |||
9 | SECTIONS { |
||
10 | . = 0x1000; |
||
11 | |||
12 | .init ALIGN(0x1000) : SUBALIGN(0x1000) { |
||
13 | *(.init); |
||
14 | } :text |
||
15 | .text : { |
||
16 | *(.text); |
||
17 | *(.text.*); |
||
18 | *(.rodata*); |
||
19 | } :text |
||
20 | |||
21 | .rel.plt ALIGN(0x1000) : { |
||
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 ALIGN(0x1000) : SUBALIGN(0x1000) { |
||
33 | *(.plt); |
||
34 | } :text |
||
35 | |||
36 | .interp : { |
||
37 | *(.interp); |
||
38 | } :text |
||
39 | |||
40 | .dynamic ALIGN(0x1000) : { |
||
41 | *(.dynamic); |
||
42 | } :text |
||
43 | |||
44 | .dynsym ALIGN(0x1000) : { |
||
45 | *(.dynsym); |
||
46 | } :text |
||
47 | |||
48 | .dynstr ALIGN(0x1000) : { |
||
49 | *(.dynstr); |
||
50 | } :text |
||
51 | |||
52 | .data ALIGN(0x1000) : SUBALIGN(0x1000) { |
||
53 | *(.data); |
||
54 | } :data |
||
55 | |||
56 | .data.rel ALIGN(0x1000) : { |
||
57 | *(.data.rel); |
||
58 | } :data |
||
59 | |||
60 | .got ALIGN(0x1000) : SUBALIGN(0x1000) { |
||
61 | *(.got); |
||
62 | } :data |
||
63 | .got.plt ALIGN(0x1000) : SUBALIGN(0x1000) { |
||
64 | *(.got.plt); |
||
65 | } :data |
||
66 | |||
67 | .bss : { |
||
68 | *(COMMON); |
||
69 | *(.bss); |
||
70 | } :data |
||
71 | |||
2983 | svoboda | 72 | /* .tdata : { |
2967 | svoboda | 73 | _tdata_start = .; |
74 | *(.tdata); |
||
75 | _tdata_end = .; |
||
76 | } :data |
||
77 | .tbss : { |
||
78 | _tbss_start = .; |
||
79 | *(.tbss); |
||
80 | _tbss_end = .; |
||
81 | } :data |
||
82 | _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss)); |
||
2983 | svoboda | 83 | */ |
2967 | svoboda | 84 | . = ALIGN(0x1000); |
85 | _heap = .; |
||
2983 | svoboda | 86 | |
2967 | svoboda | 87 | } |