source:
mainline/uspace/lib/c/arch/amd64/_link.ld.in@
64d38cd
| Last change on this file since 64d38cd was 64d38cd, checked in by , 8 years ago | |
|---|---|
|
|
| File size: 1.3 KB | |
| Rev | Line | |
|---|---|---|
| [eca820c] | 1 | STARTUP(LIBC_PATH/arch/UARCH/src/entry.o) |
| [4c4b53c] | 2 | ENTRY(_start) |
| [1a030b8] | 3 | |
| [d03e156] | 4 | PHDRS { |
| [47b2d7e3] | 5 | text PT_LOAD FILEHDR PHDRS FLAGS(5); |
| [a3aa1e1] | 6 | data PT_LOAD FLAGS(6); |
| [2c4e1cc] | 7 | tls PT_TLS; |
| [1e00216] | 8 | debug PT_NOTE; |
| [d03e156] | 9 | } |
| 10 | ||
| [1a030b8] | 11 | SECTIONS { |
| [64d38cd] | 12 | #ifdef SHLIB |
| 13 | . = SEGMENT_START("text-segment", 0); | |
| 14 | #else | |
| [47b2d7e3] | 15 | . = SEGMENT_START("text-segment", 0x400000); |
| 16 | PROVIDE (__executable_start = .); | |
| [c53d906] | 17 | #endif |
| [47b2d7e3] | 18 | . = . + SIZEOF_HEADERS; |
| [f1380b7] | 19 | |
| [1cc2974] | 20 | .init : { |
| [a3aa1e1] | 21 | *(.init); |
| 22 | } :text | |
| [f1380b7] | 23 | |
| [a3aa1e1] | 24 | .text : { |
| [d21e72db] | 25 | *(.text .text.*); |
| 26 | *(.rodata .rodata.*); | |
| [a3aa1e1] | 27 | } :text |
| [f1380b7] | 28 | |
| [1cc2974] | 29 | . = . + 0x1000; |
| [f1380b7] | 30 | |
| [1cc2974] | 31 | .data : { |
| [a3aa1e1] | 32 | *(.data); |
| [82a6d4ee] | 33 | *(.data.rel*); |
| [a3aa1e1] | 34 | } :data |
| [f1380b7] | 35 | |
| [1890f2a2] | 36 | .got.plt : { |
| 37 | *(.got.plt); | |
| 38 | } :data | |
| 39 | ||
| [c4c5de5] | 40 | .tdata : { |
| 41 | *(.tdata); | |
| [2c4e1cc] | 42 | *(.tdata.*); |
| 43 | *(.gnu.linkonce.td.*); | |
| 44 | } :data :tls | |
| [f1380b7] | 45 | |
| [2c4e1cc] | 46 | .tbss : { |
| 47 | *(.tbss); | |
| 48 | *(.tbss.*); | |
| 49 | *(.gnu.linkonce.tb.*); | |
| 50 | } :data :tls | |
| [f1380b7] | 51 | |
| [a3aa1e1] | 52 | .bss : { |
| 53 | *(COMMON); | |
| 54 | *(.bss); | |
| 55 | } :data | |
| [f1380b7] | 56 | |
| [a69d42e] | 57 | _end = .; |
| 58 | ||
| [1e00216] | 59 | #ifdef CONFIG_LINE_DEBUG |
| 60 | .comment 0 : { *(.comment); } :debug | |
| 61 | .debug_abbrev 0 : { *(.debug_abbrev); } :debug | |
| 62 | .debug_aranges 0 : { *(.debug_aranges); } :debug | |
| 63 | .debug_info 0 : { *(.debug_info); } :debug | |
| 64 | .debug_line 0 : { *(.debug_line); } :debug | |
| 65 | .debug_loc 0 : { *(.debug_loc); } :debug | |
| 66 | .debug_pubnames 0 : { *(.debug_pubnames); } :debug | |
| 67 | .debug_pubtypes 0 : { *(.debug_pubtypes); } :debug | |
| 68 | .debug_ranges 0 : { *(.debug_ranges); } :debug | |
| 69 | .debug_str 0 : { *(.debug_str); } :debug | |
| 70 | #endif | |
| [f1380b7] | 71 | |
| [d03e156] | 72 | /DISCARD/ : { |
| [a3aa1e1] | 73 | *(*); |
| [d03e156] | 74 | } |
| [1a030b8] | 75 | } |
Note:
See TracBrowser
for help on using the repository browser.
