source:
mainline/uspace/lib/c/arch/amd64/_link.ld.in@
911ee54
| Last change on this file since 911ee54 was c53d906, checked in by , 15 years ago | |
|---|---|
|
|
| File size: 1.2 KB | |
| Rev | Line | |
|---|---|---|
| [1b1164e8] | 1 | STARTUP(LIBC_PATH/arch/UARCH/src/entry.o) |
| [1a030b8] | 2 | ENTRY(__entry) |
| 3 | ||
| [d03e156] | 4 | PHDRS { |
| [c53d906] | 5 | #ifdef LOADER |
| 6 | interp PT_INTERP; | |
| 7 | text PT_LOAD FILEHDR PHDRS FLAGS(5); | |
| 8 | #else | |
| [a3aa1e1] | 9 | text PT_LOAD FLAGS(5); |
| [c53d906] | 10 | #endif |
| [a3aa1e1] | 11 | data PT_LOAD FLAGS(6); |
| [1e00216] | 12 | debug PT_NOTE; |
| [d03e156] | 13 | } |
| 14 | ||
| [1a030b8] | 15 | SECTIONS { |
| [c53d906] | 16 | #ifdef LOADER |
| 17 | .interp : { | |
| 18 | *(.interp); | |
| 19 | } :interp | |
| [a3aa1e1] | 20 | |
| [c53d906] | 21 | . = 0x70001000 + SIZEOF_HEADERS; |
| 22 | #else | |
| 23 | . = 0x1000 + SIZEOF_HEADERS; | |
| 24 | #endif | |
| [1cc2974] | 25 | .init : { |
| [a3aa1e1] | 26 | *(.init); |
| 27 | } :text | |
| [1e00216] | 28 | |
| [a3aa1e1] | 29 | .text : { |
| [d21e72db] | 30 | *(.text .text.*); |
| 31 | *(.rodata .rodata.*); | |
| [a3aa1e1] | 32 | } :text |
| [1e00216] | 33 | |
| [1cc2974] | 34 | . = . + 0x1000; |
| [1e00216] | 35 | |
| [1cc2974] | 36 | .data : { |
| [a3aa1e1] | 37 | *(.data); |
| 38 | } :data | |
| [1e00216] | 39 | |
| [c4c5de5] | 40 | .tdata : { |
| 41 | _tdata_start = .; | |
| 42 | *(.tdata); | |
| 43 | _tdata_end = .; | |
| 44 | _tbss_start = .; | |
| 45 | *(.tbss); | |
| 46 | _tbss_end = .; | |
| 47 | } :data | |
| [1e00216] | 48 | |
| [e622f0a8] | 49 | _tls_alignment = ALIGNOF(.tdata); |
| [1e00216] | 50 | |
| [a3aa1e1] | 51 | .bss : { |
| 52 | *(COMMON); | |
| 53 | *(.bss); | |
| 54 | } :data | |
| [1e00216] | 55 | |
| 56 | #ifdef CONFIG_LINE_DEBUG | |
| 57 | .comment 0 : { *(.comment); } :debug | |
| 58 | .debug_abbrev 0 : { *(.debug_abbrev); } :debug | |
| 59 | .debug_aranges 0 : { *(.debug_aranges); } :debug | |
| 60 | .debug_info 0 : { *(.debug_info); } :debug | |
| 61 | .debug_line 0 : { *(.debug_line); } :debug | |
| 62 | .debug_loc 0 : { *(.debug_loc); } :debug | |
| 63 | .debug_pubnames 0 : { *(.debug_pubnames); } :debug | |
| 64 | .debug_pubtypes 0 : { *(.debug_pubtypes); } :debug | |
| 65 | .debug_ranges 0 : { *(.debug_ranges); } :debug | |
| 66 | .debug_str 0 : { *(.debug_str); } :debug | |
| 67 | #endif | |
| 68 | ||
| [d03e156] | 69 | /DISCARD/ : { |
| [a3aa1e1] | 70 | *(*); |
| [d03e156] | 71 | } |
| [1a030b8] | 72 | } |
Note:
See TracBrowser
for help on using the repository browser.
