Changeset 729f774f in mainline for uspace/lib/c/arch/mips32/_link.ld.in
- Timestamp:
- 2011-04-30T16:12:19Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 15b3761
- Parents:
- 4ddbea7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/mips32/_link.ld.in
r4ddbea7 r729f774f 1 #ifndef SHLIB 1 2 STARTUP(LIBC_PATH/arch/UARCH/src/entry.o) 2 3 ENTRY(__entry) 4 #endif 3 5 4 6 PHDRS { 5 #if def LOADER7 #if defined(LOADER) 6 8 interp PT_INTERP; 7 9 text PT_LOAD FILEHDR PHDRS FLAGS(5); 10 #elif defined(DLEXE) 11 interp PT_INTERP; 12 text PT_LOAD FLAGS(5); 8 13 #else 9 14 text PT_LOAD FLAGS(5); 10 15 #endif 11 16 data PT_LOAD FLAGS(6); 17 #if defined(SHLIB) || defined(DLEXE) 18 dynamic PT_DYNAMIC; 19 #endif 12 20 } 13 21 14 22 SECTIONS { 15 #if def LOADER23 #if defined(LOADER) || defined(DLEXE) 16 24 .interp : { 17 25 *(.interp); 18 26 } :interp 19 27 #endif 28 #ifdef LOADER 20 29 . = 0x70004000 + SIZEOF_HEADERS; 21 30 #else … … 31 40 } :text 32 41 42 #if defined(SHLIB) || defined(DLEXE) 43 .rel.plt : { 44 *(.rel.plt); 45 } 46 /* 47 *.rel.dyn MUST FOLLOW IMMEDIATELY after .rel.plt 48 * without alignment gap or DT_REL will be broken 49 */ 50 .rel.dyn : { 51 *(.rel.*); 52 } :text 53 54 .plt : { 55 *(.plt); 56 } :text 57 58 .dynsym : { 59 *(.dynsym); 60 } :text 61 62 .dynstr : { 63 *(.dynstr); 64 } :text 65 #endif 33 66 . = . + 0x4000; 67 68 #if defined(SHLIB) || defined(DLEXE) 69 .dynamic : { 70 *(.dynamic); 71 } :data :dynamic 72 #endif 34 73 35 74 .data : { … … 43 82 } :data 44 83 84 #ifndef DLEXE 45 85 .tdata : { 46 86 _tdata_start = .; … … 56 96 57 97 _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss)); 58 98 #endif 59 99 .sbss : { 60 100 *(.scommon); … … 67 107 } :data 68 108 109 #if defined(SHLIB) 110 #elif defined(DLEXE) 111 /DISCARD/ : { 112 *(.comment); 113 } 114 #else 69 115 /DISCARD/ : { 70 116 *(*); 71 117 } 118 #endif 72 119 }
Note:
See TracChangeset
for help on using the changeset viewer.