Rev 3222 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3222 | Rev 3882 | ||
---|---|---|---|
1 | /* |
1 | /* |
2 | * The only difference from _link.ld.in for regular statically-linked apps |
2 | * The only difference from _link.ld.in for regular statically-linked apps |
3 | * is the base address. |
3 | * is the base address. |
4 | */ |
4 | */ |
5 | STARTUP(LIBC_PREFIX/arch/ARCH/src/entry.o) |
5 | STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o) |
6 | ENTRY(__entry) |
6 | ENTRY(__entry) |
7 | 7 | ||
8 | PHDRS { |
8 | PHDRS { |
9 | interp PT_INTERP; |
9 | interp PT_INTERP; |
10 | text PT_LOAD FLAGS(5); |
10 | text PT_LOAD FLAGS(5); |
11 | data PT_LOAD FLAGS(6); |
11 | data PT_LOAD FLAGS(6); |
12 | } |
12 | } |
13 | 13 | ||
14 | SECTIONS { |
14 | SECTIONS { |
15 | .interp : { |
15 | .interp : { |
16 | *(.interp); |
16 | *(.interp); |
17 | } : interp |
17 | } : interp |
18 | 18 | ||
19 | . = 0x70001000; |
19 | . = 0x70001000; |
20 | 20 | ||
21 | .init ALIGN(0x1000): SUBALIGN(0x1000) { |
21 | .init ALIGN(0x1000): SUBALIGN(0x1000) { |
22 | *(.init); |
22 | *(.init); |
23 | } : text |
23 | } : text |
24 | .text : { |
24 | .text : { |
25 | *(.text); |
25 | *(.text); |
26 | *(.rodata*); |
26 | *(.rodata*); |
27 | } :text |
27 | } :text |
28 | 28 | ||
29 | .data ALIGN(0x1000) : SUBALIGN(0x1000) { |
29 | .data ALIGN(0x1000) : SUBALIGN(0x1000) { |
30 | *(.opd); |
30 | *(.opd); |
31 | *(.data .data.*); |
31 | *(.data .data.*); |
32 | *(.sdata); |
32 | *(.sdata); |
33 | } :data |
33 | } :data |
34 | .tdata : { |
34 | .tdata : { |
35 | _tdata_start = .; |
35 | _tdata_start = .; |
36 | *(.tdata); |
36 | *(.tdata); |
37 | _tdata_end = .; |
37 | _tdata_end = .; |
38 | } :data |
38 | } :data |
39 | .tbss : { |
39 | .tbss : { |
40 | _tbss_start = .; |
40 | _tbss_start = .; |
41 | *(.tbss); |
41 | *(.tbss); |
42 | _tbss_end = .; |
42 | _tbss_end = .; |
43 | } :data |
43 | } :data |
44 | _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss)); |
44 | _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss)); |
45 | .bss : { |
45 | .bss : { |
46 | *(.sbss); |
46 | *(.sbss); |
47 | *(.scommon); |
47 | *(.scommon); |
48 | *(COMMON); |
48 | *(COMMON); |
49 | *(.bss); |
49 | *(.bss); |
50 | } :data |
50 | } :data |
51 | 51 | ||
52 | . = ALIGN(0x1000); |
52 | . = ALIGN(0x1000); |
53 | _heap = .; |
53 | _heap = .; |
54 | 54 | ||
55 | /DISCARD/ : { |
55 | /DISCARD/ : { |
56 | *(*); |
56 | *(*); |
57 | } |
57 | } |
58 | 58 | ||
59 | } |
59 | } |
60 | 60 |