Changeset 4235849 in mainline
- Timestamp:
- 2011-05-01T12:14:46Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 326d86e
- Parents:
- 9fb1397
- Location:
- uspace/lib/c/arch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/mips32/_link.ld.in
r9fb1397 r4235849 1 #ifndef SHLIB2 1 STARTUP(LIBC_PATH/arch/UARCH/src/entry.o) 3 2 ENTRY(__entry) 4 #endif5 3 6 4 PHDRS { 7 #if defined(LOADER)5 #ifdef LOADER 8 6 interp PT_INTERP; 9 7 text PT_LOAD FILEHDR PHDRS FLAGS(5); 10 #elif defined(DLEXE)11 interp PT_INTERP;12 text PT_LOAD FLAGS(5);13 8 #else 14 9 text PT_LOAD FLAGS(5); 15 10 #endif 16 11 data PT_LOAD FLAGS(6); 17 #if defined(SHLIB) || defined(DLEXE)18 dynamic PT_DYNAMIC;19 #endif20 12 } 21 13 22 14 SECTIONS { 23 #if defined(LOADER) || defined(DLEXE)15 #ifdef LOADER 24 16 .interp : { 25 17 *(.interp); 26 18 } :interp 27 #endif 28 #ifdef LOADER 19 29 20 . = 0x70004000 + SIZEOF_HEADERS; 30 21 #else … … 40 31 } :text 41 32 42 #if defined(SHLIB) || defined(DLEXE)43 .rel.plt : {44 *(.rel.plt);45 }46 /*47 *.rel.dyn MUST FOLLOW IMMEDIATELY after .rel.plt48 * without alignment gap or DT_REL will be broken49 */50 .rel.dyn : {51 *(.rel.*);52 } :text53 54 .plt : {55 *(.plt);56 } :text57 58 .dynsym : {59 *(.dynsym);60 } :text61 62 .dynstr : {63 *(.dynstr);64 } :text65 #endif66 33 . = . + 0x4000; 67 68 #if defined(SHLIB) || defined(DLEXE)69 .dynamic : {70 *(.dynamic);71 } :data :dynamic72 #endif73 34 74 35 .data : { … … 82 43 } :data 83 44 84 #ifndef DLEXE85 45 .tdata : { 86 46 _tdata_start = .; … … 96 56 97 57 _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss)); 98 #endif 58 99 59 .sbss : { 100 60 *(.scommon); … … 107 67 } :data 108 68 109 #if defined(SHLIB)110 #elif defined(DLEXE)111 /DISCARD/ : {112 *(.comment);113 }114 #else115 69 /DISCARD/ : { 116 70 *(*); 117 71 } 118 #endif119 72 } -
uspace/lib/c/arch/ppc32/_link.ld.in
r9fb1397 r4235849 1 #ifndef SHLIB2 1 STARTUP(LIBC_PATH/arch/UARCH/src/entry.o) 3 2 ENTRY(__entry) 4 #endif5 3 6 4 PHDRS { 7 #if defined(LOADER)5 #ifdef LOADER 8 6 interp PT_INTERP; 9 7 text PT_LOAD FILEHDR PHDRS FLAGS(5); 10 #elif defined(DLEXE)11 interp PT_INTERP;12 text PT_LOAD FLAGS(5);13 8 #else 14 9 text PT_LOAD FLAGS(5); 15 10 #endif 16 11 data PT_LOAD FLAGS(6); 17 #if defined(SHLIB) || defined(DLEXE)18 dynamic PT_DYNAMIC;19 #endif20 12 } 21 13 22 14 SECTIONS { 23 #if defined(LOADER) || defined(DLEXE)15 #ifdef LOADER 24 16 .interp : { 25 17 *(.interp); 26 18 } :interp 27 #endif 28 #ifdef LOADER 19 29 20 . = 0x70001000 + SIZEOF_HEADERS; 30 21 #else … … 40 31 } :text 41 32 42 #if defined(SHLIB) || defined(DLEXE)43 .rel.plt : {44 *(.rel.plt);45 }46 /*47 *.rel.dyn MUST FOLLOW IMMEDIATELY after .rel.plt48 * without alignment gap or DT_REL will be broken49 */50 .rel.dyn : {51 *(.rel.*);52 } :text53 54 .plt : {55 *(.plt);56 } :text57 58 .dynsym : {59 *(.dynsym);60 } :text61 62 .dynstr : {63 *(.dynstr);64 } :text65 #endif66 33 . = . + 0x1000; 67 68 #if defined(SHLIB) || defined(DLEXE)69 .dynamic : {70 *(.dynamic);71 } :data :dynamic72 #endif73 34 74 35 .data : { … … 77 38 } :data 78 39 79 #if defined(SHLIB) || defined(DLEXE)80 .data.rel : {81 *(.data.rel);82 } :data83 84 .got : {85 *(.got);86 } :data87 .got.plt : {88 *(.got.plt);89 } :data90 #endif91 92 #ifndef DLEXE93 40 .tdata : { 94 41 _tdata_start = .; … … 101 48 102 49 _tls_alignment = ALIGNOF(.tdata); 103 #endif104 50 105 51 .bss : { … … 109 55 } :data 110 56 111 #if defined(SHLIB)112 #elif defined(DLEXE)113 /DISCARD/ : {114 *(.comment);115 }116 #else117 57 /DISCARD/ : { 118 58 *(*); 119 59 } 120 #endif121 60 }
Note:
See TracChangeset
for help on using the changeset viewer.