Rev 3556 | Rev 3690 | 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 { |
||
3558 | svoboda | 5 | text PT_LOAD FLAGS(5); |
3004 | svoboda | 6 | interp PT_INTERP; |
2967 | svoboda | 7 | data PT_LOAD FLAGS(6); |
8 | } |
||
9 | |||
10 | SECTIONS { |
||
3558 | svoboda | 11 | . = 0x1000 + SIZEOF_HEADERS; |
12 | |||
3004 | svoboda | 13 | .interp : { |
14 | *(.interp); |
||
15 | } :interp |
||
16 | |||
3558 | svoboda | 17 | .init : { |
2967 | svoboda | 18 | *(.init); |
19 | } :text |
||
20 | .text : { |
||
21 | *(.text); |
||
22 | *(.text.*); |
||
23 | *(.rodata*); |
||
24 | } :text |
||
25 | |||
3558 | svoboda | 26 | .rel.plt : { |
2967 | svoboda | 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 | |||
3558 | svoboda | 37 | .plt : { |
2967 | svoboda | 38 | *(.plt); |
39 | } :text |
||
40 | |||
41 | |||
3558 | svoboda | 42 | .dynamic : { |
2967 | svoboda | 43 | *(.dynamic); |
44 | } :text |
||
45 | |||
3558 | svoboda | 46 | .dynsym : { |
2967 | svoboda | 47 | *(.dynsym); |
48 | } :text |
||
49 | |||
3558 | svoboda | 50 | .dynstr : { |
2967 | svoboda | 51 | *(.dynstr); |
52 | } :text |
||
53 | |||
3558 | svoboda | 54 | . = . + 0x1000; |
55 | |||
56 | .data : { |
||
2967 | svoboda | 57 | *(.data); |
58 | } :data |
||
59 | |||
3558 | svoboda | 60 | .data.rel : { |
2967 | svoboda | 61 | *(.data.rel); |
62 | } :data |
||
63 | |||
3558 | svoboda | 64 | .got : { |
2967 | svoboda | 65 | *(.got); |
66 | } :data |
||
3558 | svoboda | 67 | .got.plt : { |
2967 | svoboda | 68 | *(.got.plt); |
69 | } :data |
||
70 | |||
71 | .bss : { |
||
72 | *(COMMON); |
||
73 | *(.bss); |
||
74 | } :data |
||
75 | |||
2983 | svoboda | 76 | /* .tdata : { |
2967 | svoboda | 77 | _tdata_start = .; |
78 | *(.tdata); |
||
79 | _tdata_end = .; |
||
80 | } :data |
||
81 | .tbss : { |
||
82 | _tbss_start = .; |
||
83 | *(.tbss); |
||
84 | _tbss_end = .; |
||
85 | } :data |
||
86 | _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss)); |
||
2983 | svoboda | 87 | */ |
3558 | svoboda | 88 | /DISCARD/ : { |
89 | *(.comment); |
||
90 | } |
||
91 | |||
2967 | svoboda | 92 | . = ALIGN(0x1000); |
93 | _heap = .; |
||
94 | } |