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