Changeset 729f774f in mainline for uspace/lib/c/arch/ppc32/_link.ld.in
- Timestamp:
- 2011-04-30T16:12:19Z (12 years ago)
- Branches:
- lfn, master, serial
- Children:
- 15b3761
- Parents:
- 4ddbea7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/ppc32/_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 . = 0x70001000 + 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 . = . + 0x1000; 67 68 #if defined(SHLIB) || defined(DLEXE) 69 .dynamic : { 70 *(.dynamic); 71 } :data :dynamic 72 #endif 34 73 35 74 .data : { … … 38 77 } :data 39 78 79 #if defined(SHLIB) || defined(DLEXE) 80 .data.rel : { 81 *(.data.rel); 82 } :data 83 84 .got : { 85 *(.got); 86 } :data 87 .got.plt : { 88 *(.got.plt); 89 } :data 90 #endif 91 92 #ifndef DLEXE 40 93 .tdata : { 41 94 _tdata_start = .; … … 48 101 49 102 _tls_alignment = ALIGNOF(.tdata); 103 #endif 50 104 51 105 .bss : { … … 55 109 } :data 56 110 111 #if defined(SHLIB) 112 #elif defined(DLEXE) 113 /DISCARD/ : { 114 *(.comment); 115 } 116 #else 57 117 /DISCARD/ : { 58 118 *(*); 59 119 } 120 #endif 60 121 }
Note: See TracChangeset
for help on using the changeset viewer.