source:
mainline/uspace/lib/c/arch/ia64/_link.ld.in@
34f0448
| Last change on this file since 34f0448 was a1fdf53, checked in by , 15 years ago | |
|---|---|
|
|
| File size: 1006 bytes | |
| Rev | Line | |
|---|---|---|
| [1b1164e8] | 1 | STARTUP(LIBC_PATH/arch/UARCH/src/entry.o) |
| [fbd6f81] | 2 | ENTRY(__entry) |
| 3 | ||
| [a3aa1e1] | 4 | PHDRS { |
| [c53d906] | 5 | #ifdef LOADER |
| 6 | interp PT_INTERP; | |
| [a3aa1e1] | 7 | text PT_LOAD FLAGS(5); |
| [c53d906] | 8 | #else |
| 9 | text PT_LOAD FLAGS(5); | |
| 10 | #endif | |
| [a3aa1e1] | 11 | data PT_LOAD FLAGS(6); |
| 12 | } | |
| 13 | ||
| [fbd6f81] | 14 | SECTIONS { |
| [c53d906] | 15 | #ifdef LOADER |
| 16 | .interp : { | |
| 17 | *(.interp); | |
| 18 | } :interp | |
| [5e8b881] | 19 | |
| [c53d906] | 20 | . = 0x800000000 + SIZEOF_HEADERS; |
| 21 | #else | |
| 22 | . = 0x4000 + SIZEOF_HEADERS; | |
| 23 | #endif | |
| [a1fdf53] | 24 | /* |
| 25 | * XXX This is just a work around. Problem: .init section does not | |
| 26 | * have the proper alignment. | |
| 27 | */ | |
| 28 | . = ALIGN(., 16); | |
| 29 | ||
| [1cc2974] | 30 | .init : { |
| [a3aa1e1] | 31 | *(.init); |
| [5e8b881] | 32 | } :text |
| 33 | ||
| [a3aa1e1] | 34 | .text : { |
| [49852df] | 35 | *(.text .text.*); |
| 36 | *(.rodata .rodata.*); | |
| [a3aa1e1] | 37 | } :text |
| [5e8b881] | 38 | |
| [1cc2974] | 39 | . = . + 0x4000; |
| [5e8b881] | 40 | |
| [1cc2974] | 41 | .got : { |
| [88634420] | 42 | /* Tell the linker where we expect GP to point. */ |
| 43 | __gp = .; | |
| [49852df] | 44 | *(.got .got.*); |
| [5e8b881] | 45 | } :data |
| 46 | ||
| [a3aa1e1] | 47 | .data : { |
| 48 | *(.opd); | |
| [7f9cd77] | 49 | *(.data .data.*); |
| [a3aa1e1] | 50 | *(.sdata); |
| 51 | } :data | |
| [5e8b881] | 52 | |
| [c4c5de5] | 53 | .tdata : { |
| 54 | _tdata_start = .; | |
| 55 | *(.tdata); | |
| 56 | _tdata_end = .; | |
| 57 | _tbss_start = .; | |
| 58 | *(.tbss); | |
| 59 | _tbss_end = .; | |
| 60 | } :data | |
| [5e8b881] | 61 | |
| [e622f0a8] | 62 | _tls_alignment = ALIGNOF(.tdata); |
| [5e8b881] | 63 | |
| [a3aa1e1] | 64 | .bss : { |
| 65 | *(.sbss); | |
| 66 | *(.scommon); | |
| [fbd6f81] | 67 | *(COMMON); |
| [a3aa1e1] | 68 | *(.bss); |
| 69 | } :data | |
| [5e8b881] | 70 | |
| [fbd6f81] | 71 | /DISCARD/ : { |
| [a3aa1e1] | 72 | *(*); |
| [5e8b881] | 73 | } |
| [fbd6f81] | 74 | } |
Note:
See TracBrowser
for help on using the repository browser.
