source:
mainline/uspace/srv/loader/arch/mips32/_link.ld.in@
e50cd7f
| Last change on this file since e50cd7f was e392ebd, checked in by , 15 years ago | |
|---|---|
|
|
| File size: 877 bytes | |
| Rev | Line | |
|---|---|---|
| [fcd7053] | 1 | /* |
| [c98e6ee] | 2 | * The only difference from _link.ld.in for regular statically-linked apps |
| 3 | * is the base address. | |
| 4 | */ | |
| [5e8b881] | 5 | |
| [fcd7053] | 6 | STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o) |
| [c98e6ee] | 7 | ENTRY(__entry) |
| 8 | ||
| 9 | PHDRS { | |
| 10 | interp PT_INTERP; | |
| 11 | text PT_LOAD FLAGS(5); | |
| 12 | data PT_LOAD FLAGS(6); | |
| 13 | } | |
| 14 | ||
| 15 | SECTIONS { | |
| 16 | .interp : { | |
| 17 | *(.interp); | |
| 18 | } :interp | |
| [5e8b881] | 19 | |
| [c98e6ee] | 20 | . = 0x70004000; |
| 21 | ||
| 22 | .init ALIGN(0x4000) : SUBALIGN(0x4000) { | |
| 23 | *(.init); | |
| 24 | } :text | |
| [5e8b881] | 25 | |
| [c98e6ee] | 26 | .text : { |
| [e392ebd] | 27 | *(.text .text.*); |
| 28 | *(.rodata .rodata.*); | |
| [c98e6ee] | 29 | } :text |
| [5e8b881] | 30 | |
| 31 | . = . + 0x4000; | |
| 32 | ||
| [c98e6ee] | 33 | .data : { |
| 34 | *(.data); | |
| 35 | *(.data.rel*); | |
| 36 | } :data | |
| [5e8b881] | 37 | |
| [c98e6ee] | 38 | .got : { |
| 39 | _gp = .; | |
| 40 | *(.got); | |
| 41 | } :data | |
| [5e8b881] | 42 | |
| [c98e6ee] | 43 | .tdata : { |
| 44 | _tdata_start = .; | |
| 45 | *(.tdata); | |
| 46 | _tdata_end = .; | |
| 47 | } :data | |
| [5e8b881] | 48 | |
| [c98e6ee] | 49 | .tbss : { |
| 50 | _tbss_start = .; | |
| 51 | *(.tbss); | |
| 52 | _tbss_end = .; | |
| 53 | } :data | |
| [5e8b881] | 54 | |
| [c98e6ee] | 55 | _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss)); |
| [5e8b881] | 56 | |
| [c98e6ee] | 57 | .sbss : { |
| 58 | *(.scommon); | |
| 59 | *(.sbss); | |
| [5e8b881] | 60 | } |
| 61 | ||
| [c98e6ee] | 62 | .bss : { |
| 63 | *(.bss); | |
| 64 | *(COMMON); | |
| 65 | } :data | |
| [5e8b881] | 66 | |
| [c98e6ee] | 67 | /DISCARD/ : { |
| 68 | *(*); | |
| 69 | } | |
| 70 | } |
Note:
See TracBrowser
for help on using the repository browser.
