Rev 2580 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2580 | Rev 3007 | ||
---|---|---|---|
1 | STARTUP(LIBC_PREFIX/arch/ARCH/src/entry.o) |
1 | STARTUP(LIBC_PREFIX/arch/ARCH/src/entry.o) |
2 | ENTRY(__entry) |
2 | ENTRY(__entry) |
3 | 3 | ||
4 | PHDRS { |
4 | PHDRS { |
5 | text PT_LOAD FLAGS(5); |
5 | text PT_LOAD FLAGS(5); |
6 | data PT_LOAD FLAGS(6); |
6 | data PT_LOAD FLAGS(6); |
7 | } |
7 | } |
8 | 8 | ||
9 | SECTIONS { |
9 | SECTIONS { |
10 | . = 0x1000; |
10 | . = 0x1000 + SIZEOF_HEADERS; |
11 | 11 | ||
12 | .init ALIGN(0x1000) : SUBALIGN(0x1000) { |
12 | .init : { |
13 | *(.init); |
13 | *(.init); |
14 | } :text |
14 | } :text |
15 | .text : { |
15 | .text : { |
16 | *(.text); |
16 | *(.text); |
17 | *(.rodata*); |
17 | *(.rodata*); |
18 | } :text |
18 | } :text |
19 | 19 | ||
20 | .data ALIGN(0x1000) : SUBALIGN(0x1000) { |
20 | . = . + 0x1000; |
- | 21 | ||
- | 22 | .data : { |
|
21 | *(.data); |
23 | *(.data); |
22 | *(.sdata); |
24 | *(.sdata); |
23 | } :data |
25 | } :data |
24 | .tdata : { |
26 | .tdata : { |
25 | _tdata_start = .; |
27 | _tdata_start = .; |
26 | *(.tdata); |
28 | *(.tdata); |
27 | _tdata_end = .; |
29 | _tdata_end = .; |
28 | } :data |
30 | } :data |
29 | .tbss : { |
31 | .tbss : { |
30 | _tbss_start = .; |
32 | _tbss_start = .; |
31 | *(.tbss); |
33 | *(.tbss); |
32 | _tbss_end = .; |
34 | _tbss_end = .; |
33 | } :data |
35 | } :data |
34 | _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss)); |
36 | _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss)); |
35 | .bss : { |
37 | .bss : { |
36 | *(.sbss); |
38 | *(.sbss); |
37 | *(COMMON); |
39 | *(COMMON); |
38 | *(.bss); |
40 | *(.bss); |
39 | } :data |
41 | } :data |
40 | 42 | ||
41 | . = ALIGN(0x1000); |
43 | . = ALIGN(0x1000); |
42 | _heap = .; |
44 | _heap = .; |
43 | 45 | ||
44 | /DISCARD/ : { |
46 | /DISCARD/ : { |
45 | *(*); |
47 | *(*); |
46 | } |
48 | } |
47 | 49 | ||
48 | } |
50 | } |
49 | 51 |