Rev 3690 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4342 | svoboda | 1 | STARTUP(LIBC_PREFIX/arch/UARCH/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); |
3690 | svoboda | 8 | dynamic PT_DYNAMIC; |
2967 | svoboda | 9 | } |
10 | |||
11 | SECTIONS { |
||
3558 | svoboda | 12 | . = 0x1000 + SIZEOF_HEADERS; |
13 | |||
3004 | svoboda | 14 | .interp : { |
15 | *(.interp); |
||
16 | } :interp |
||
17 | |||
3558 | svoboda | 18 | .init : { |
2967 | svoboda | 19 | *(.init); |
20 | } :text |
||
21 | .text : { |
||
22 | *(.text); |
||
23 | *(.text.*); |
||
24 | *(.rodata*); |
||
25 | } :text |
||
26 | |||
3558 | svoboda | 27 | .rel.plt : { |
2967 | svoboda | 28 | *(.rel.plt); |
29 | } |
||
30 | /* |
||
31 | *.rel.dyn MUST FOLLOW IMMEDIATELY after .rel.plt |
||
32 | * without alignment gap or DT_REL will be broken |
||
33 | */ |
||
34 | .rel.dyn : { |
||
35 | *(.rel.*); |
||
36 | } :text |
||
37 | |||
3558 | svoboda | 38 | .plt : { |
2967 | svoboda | 39 | *(.plt); |
40 | } :text |
||
41 | |||
3558 | svoboda | 42 | .dynsym : { |
2967 | svoboda | 43 | *(.dynsym); |
44 | } :text |
||
45 | |||
3558 | svoboda | 46 | .dynstr : { |
2967 | svoboda | 47 | *(.dynstr); |
48 | } :text |
||
49 | |||
3558 | svoboda | 50 | . = . + 0x1000; |
51 | |||
3690 | svoboda | 52 | .dynamic : { |
53 | *(.dynamic); |
||
54 | } :data :dynamic |
||
55 | |||
3558 | svoboda | 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 | } |