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