source: mainline/uspace/srv/loader/arch/ia64/_link.ld.in@ 563686b

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 563686b was 88634420, checked in by Jakub Jermar <jakub@…>, 15 years ago

The linker pays attention to gp, so use gp instead of _gp.

  • Property mode set to 100644
File size: 889 bytes
RevLine 
[fcd7053]1STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o)
[c98e6ee]2ENTRY(__entry)
3
4PHDRS {
5 interp PT_INTERP;
6 text PT_LOAD FLAGS(5);
7 data PT_LOAD FLAGS(6);
8}
9
10SECTIONS {
11 .interp : {
12 *(.interp);
13 } :interp
[5e8b881]14
[59b2adb]15 /* On Itanium code sections must be aligned to 16 bytes. */
16 . = ALIGN(0x800000000 + SIZEOF_HEADERS, 16);
[5e8b881]17
[c98e6ee]18 .init : {
19 *(.init);
[5e8b881]20 } :text
21
[c98e6ee]22 .text : {
[49852df]23 *(.text .text.*);
24 *(.rodata .rodata.*);
[c98e6ee]25 } :text
[5e8b881]26
[c98e6ee]27 . = . + 0x4000;
[5e8b881]28
[c98e6ee]29 .got : {
[88634420]30 /* Tell the linker where we expect GP to point. */
31 __gp = .;
[49852df]32 *(.got .got.*);
[5e8b881]33 } :data
34
[c98e6ee]35 .data : {
36 *(.opd);
37 *(.data .data.*);
38 *(.sdata);
39 } :data
[5e8b881]40
[c98e6ee]41 .tdata : {
42 _tdata_start = .;
43 *(.tdata);
44 _tdata_end = .;
45 } :data
[5e8b881]46
[c98e6ee]47 .tbss : {
48 _tbss_start = .;
49 *(.tbss);
50 _tbss_end = .;
51 } :data
[5e8b881]52
[c98e6ee]53 _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss));
[5e8b881]54
[c98e6ee]55 .bss : {
56 *(.sbss);
57 *(.scommon);
58 *(COMMON);
59 *(.bss);
60 } :data
[5e8b881]61
[c98e6ee]62 /DISCARD/ : {
63 *(*);
[5e8b881]64 }
[c98e6ee]65}
Note: See TracBrowser for help on using the repository browser.