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