source:
mainline/uspace/lib/c/arch/arm32/_link.ld.in@
1433ecda
Last change on this file since 1433ecda was 47b2d7e3, checked in by , 7 years ago | |
---|---|
|
|
File size: 888 bytes |
Rev | Line | |
---|---|---|
[eca820c] | 1 | STARTUP(LIBC_PATH/arch/UARCH/src/entry.o) |
[d630139] | 2 | ENTRY(__entry) |
3 | ||
4 | PHDRS { | |
[c53d906] | 5 | #ifdef LOADER |
6 | interp PT_INTERP; | |
7 | #endif | |
[47b2d7e3] | 8 | text PT_LOAD FILEHDR PHDRS FLAGS(5); |
[d630139] | 9 | data PT_LOAD FLAGS(6); |
10 | } | |
11 | ||
12 | SECTIONS { | |
[c53d906] | 13 | #ifdef LOADER |
[47b2d7e3] | 14 | . = SEGMENT_START("text-segment", 0x70400000); |
[c53d906] | 15 | #else |
[47b2d7e3] | 16 | . = SEGMENT_START("text-segment", 0x400000); |
17 | #endif | |
18 | #ifndef SHLIB | |
19 | PROVIDE (__executable_start = .); | |
[c53d906] | 20 | #endif |
[47b2d7e3] | 21 | . = . + SIZEOF_HEADERS; |
[f1380b7] | 22 | |
[1cc2974] | 23 | .init : { |
[d630139] | 24 | *(.init); |
[5e8b881] | 25 | } :text |
[f1380b7] | 26 | |
[d630139] | 27 | .text : { |
[21cb3ac] | 28 | *(.text .text.*); |
29 | *(.rodata .rodata.*); | |
[d630139] | 30 | } :text |
[f1380b7] | 31 | |
[0783634] | 32 | #ifdef LOADER |
33 | .interp : { | |
34 | *(.interp); | |
35 | } :interp :text | |
36 | #endif | |
[f1380b7] | 37 | |
[1cc2974] | 38 | . = . + 0x1000; |
[f1380b7] | 39 | |
[1cc2974] | 40 | .data : { |
[d630139] | 41 | *(.opd); |
42 | *(.data .data.*); | |
43 | *(.sdata); | |
44 | } :data | |
[f1380b7] | 45 | |
[d630139] | 46 | .tdata : { |
47 | _tdata_start = .; | |
48 | *(.tdata); | |
49 | _tdata_end = .; | |
50 | _tbss_start = .; | |
51 | *(.tbss); | |
52 | _tbss_end = .; | |
53 | } :data | |
[f1380b7] | 54 | |
[e622f0a8] | 55 | _tls_alignment = ALIGNOF(.tdata); |
[f1380b7] | 56 | |
[d630139] | 57 | .bss : { |
58 | *(.sbss); | |
59 | *(.scommon); | |
[5e8b881] | 60 | *(COMMON); |
61 | *(.bss); | |
[d630139] | 62 | } :data |
[f1380b7] | 63 | |
[d630139] | 64 | /DISCARD/ : { |
65 | *(*); | |
[6b781c0] | 66 | } |
[d630139] | 67 | } |
Note:
See TracBrowser
for help on using the repository browser.