source:
mainline/uspace/lib/c/arch/mips32/_link.ld.in@
f798178
Last change on this file since f798178 was 28c4ca7, checked in by , 14 years ago | |
---|---|
|
|
File size: 874 bytes |
Rev | Line | |
---|---|---|
[1b1164e8] | 1 | STARTUP(LIBC_PATH/arch/UARCH/src/entry.o) |
[25f9823] | 2 | ENTRY(__entry) |
[3eddaff] | 3 | |
[a3aa1e1] | 4 | PHDRS { |
[c53d906] | 5 | #ifdef LOADER |
6 | interp PT_INTERP; | |
7 | text PT_LOAD FILEHDR PHDRS FLAGS(5); | |
8 | #else | |
[a3aa1e1] | 9 | text PT_LOAD FLAGS(5); |
[c53d906] | 10 | #endif |
[a3aa1e1] | 11 | data PT_LOAD FLAGS(6); |
12 | } | |
13 | ||
[3eddaff] | 14 | SECTIONS { |
[c53d906] | 15 | #ifdef LOADER |
[365a41d] | 16 | .interp : { |
[c53d906] | 17 | *(.interp); |
18 | } :interp | |
[a3aa1e1] | 19 | |
[28c4ca7] | 20 | . = 0x70004000 + SIZEOF_HEADERS; |
[c53d906] | 21 | #else |
22 | . = 0x4000 + SIZEOF_HEADERS; | |
23 | #endif | |
[1cc2974] | 24 | .init : { |
[8f9239e] | 25 | *(.init); |
[a3aa1e1] | 26 | } :text |
[5e8b881] | 27 | |
[8f9239e] | 28 | .text : { |
[e392ebd] | 29 | *(.text .text.*); |
30 | *(.rodata .rodata.*); | |
[a3aa1e1] | 31 | } :text |
[5e8b881] | 32 | |
[1cc2974] | 33 | . = . + 0x4000; |
[5e8b881] | 34 | |
[a71d9af9] | 35 | .data : { |
[8f9239e] | 36 | *(.data); |
[a71d9af9] | 37 | *(.data.rel*); |
[a3aa1e1] | 38 | } :data |
[5e8b881] | 39 | |
[e708063] | 40 | .got : { |
41 | _gp = .; | |
[a71d9af9] | 42 | *(.got); |
[e708063] | 43 | } :data |
[5e8b881] | 44 | |
[c4c5de5] | 45 | .tdata : { |
46 | _tdata_start = .; | |
47 | *(.tdata); | |
48 | _tdata_end = .; | |
[5e8b881] | 49 | } :data |
50 | ||
51 | .tbss : { | |
[c4c5de5] | 52 | _tbss_start = .; |
53 | *(.tbss); | |
54 | _tbss_end = .; | |
55 | } :data | |
[5e8b881] | 56 | |
57 | _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss)); | |
58 | ||
[6122db1] | 59 | .sbss : { |
60 | *(.scommon); | |
61 | *(.sbss); | |
[5e8b881] | 62 | } |
63 | ||
[8f9239e] | 64 | .bss : { |
65 | *(.bss); | |
66 | *(COMMON); | |
[a3aa1e1] | 67 | } :data |
[5e8b881] | 68 | |
[8f9239e] | 69 | /DISCARD/ : { |
[d03e156] | 70 | *(*); |
71 | } | |
[3eddaff] | 72 | } |
Note:
See TracBrowser
for help on using the repository browser.