Changeset b5e68c8 in mainline for uspace/lib/c/arch/ia32/_link.ld.in
- Timestamp:
- 2011-05-12T16:49:44Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f36787d7
- Parents:
- e80329d6 (diff), 750636a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/ia32/_link.ld.in
re80329d6 rb5e68c8 1 #ifndef SHLIB 1 2 STARTUP(LIBC_PATH/arch/UARCH/src/entry.o) 2 3 ENTRY(__entry) 4 #endif 3 5 4 6 PHDRS { 7 #if defined(LOADER) || defined(DLEXE) 8 interp PT_INTERP; 9 text PT_LOAD FILEHDR PHDRS FLAGS(5); 10 #else 5 11 text PT_LOAD FLAGS(5); 12 #endif 6 13 data PT_LOAD FLAGS(6); 14 #if defined(SHLIB) || defined(DLEXE) 15 dynamic PT_DYNAMIC; 16 #endif 17 debug PT_NOTE; 7 18 } 8 19 9 20 SECTIONS { 21 #if defined(LOADER) || defined(DLEXE) 22 .interp : { 23 *(.interp); 24 } :interp 25 #endif 26 #ifdef LOADER 27 . = 0x70001000 + SIZEOF_HEADERS; 28 #else 10 29 . = 0x1000 + SIZEOF_HEADERS; 11 30 #endif 12 31 .init : { 13 32 *(.init); … … 15 34 16 35 .text : { 17 *(.text); 18 *(.rodata*); 36 *(.text .text.*); 37 *(.rodata .rodata.*); 38 } :text 39 40 #if defined(SHLIB) || defined(DLEXE) 41 .rel.plt : { 42 *(.rel.plt); 43 } 44 /* 45 *.rel.dyn MUST FOLLOW IMMEDIATELY after .rel.plt 46 * without alignment gap or DT_REL will be broken 47 */ 48 .rel.dyn : { 49 *(.rel.*); 19 50 } :text 20 51 52 .plt : { 53 *(.plt); 54 } :text 55 56 .dynsym : { 57 *(.dynsym); 58 } :text 59 60 .dynstr : { 61 *(.dynstr); 62 } :text 63 64 .hash : { 65 *(.hash); 66 } :text 67 #endif 21 68 . = . + 0x1000; 69 70 #if defined(SHLIB) || defined(DLEXE) 71 .dynamic : { 72 *(.dynamic); 73 } :data :dynamic 74 #endif 22 75 23 76 .data : { … … 25 78 } :data 26 79 80 #if defined(SHLIB) || defined(DLEXE) 81 .data.rel : { 82 *(.data.rel .data.rel.*); 83 } :data 84 85 .got : { 86 *(.got); 87 } :data 88 .got.plt : { 89 *(.got.plt); 90 } :data 91 #endif 92 93 #ifndef DLEXE 27 94 .tdata : { 28 95 _tdata_start = .; … … 36 103 37 104 _tls_alignment = ALIGNOF(.tdata); 105 #endif 38 106 39 107 .bss : { 108 *(.dynbss); 40 109 *(COMMON); 41 110 *(.bss); 42 111 } :data 43 112 44 . = ALIGN(0x1000); 45 46 _heap = .; 113 #ifdef CONFIG_LINE_DEBUG 114 .comment 0 : { *(.comment); } :debug 115 .debug_abbrev 0 : { *(.debug_abbrev); } :debug 116 .debug_aranges 0 : { *(.debug_aranges); } :debug 117 .debug_info 0 : { *(.debug_info); } :debug 118 .debug_line 0 : { *(.debug_line); } :debug 119 .debug_loc 0 : { *(.debug_loc); } :debug 120 .debug_pubnames 0 : { *(.debug_pubnames); } :debug 121 .debug_pubtypes 0 : { *(.debug_pubtypes); } :debug 122 .debug_ranges 0 : { *(.debug_ranges); } :debug 123 .debug_str 0 : { *(.debug_str); } :debug 124 #endif 47 125 48 126 /DISCARD/ : {
Note:
See TracChangeset
for help on using the changeset viewer.