source: mainline/uspace/lib/c/arch/ia64/_link.ld.in@ bae7bdc

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since bae7bdc 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: 708 bytes
RevLine 
[1b1164e8]1STARTUP(LIBC_PATH/arch/UARCH/src/entry.o)
[fbd6f81]2ENTRY(__entry)
3
[a3aa1e1]4PHDRS {
5 text PT_LOAD FLAGS(5);
6 data PT_LOAD FLAGS(6);
7}
8
[fbd6f81]9SECTIONS {
[1cc2974]10 . = 0x4000 + SIZEOF_HEADERS;
[5e8b881]11
[1cc2974]12 .init : {
[a3aa1e1]13 *(.init);
[5e8b881]14 } :text
15
[a3aa1e1]16 .text : {
[49852df]17 *(.text .text.*);
18 *(.rodata .rodata.*);
[a3aa1e1]19 } :text
[5e8b881]20
[1cc2974]21 . = . + 0x4000;
[5e8b881]22
[1cc2974]23 .got : {
[88634420]24 /* Tell the linker where we expect GP to point. */
25 __gp = .;
[49852df]26 *(.got .got.*);
[5e8b881]27 } :data
28
[a3aa1e1]29 .data : {
30 *(.opd);
[7f9cd77]31 *(.data .data.*);
[a3aa1e1]32 *(.sdata);
33 } :data
[5e8b881]34
[c4c5de5]35 .tdata : {
36 _tdata_start = .;
37 *(.tdata);
38 _tdata_end = .;
39 _tbss_start = .;
40 *(.tbss);
41 _tbss_end = .;
42 } :data
[5e8b881]43
[e622f0a8]44 _tls_alignment = ALIGNOF(.tdata);
[5e8b881]45
[a3aa1e1]46 .bss : {
47 *(.sbss);
48 *(.scommon);
[fbd6f81]49 *(COMMON);
[a3aa1e1]50 *(.bss);
51 } :data
[5e8b881]52
[fbd6f81]53 /DISCARD/ : {
[a3aa1e1]54 *(*);
[5e8b881]55 }
[fbd6f81]56}
Note: See TracBrowser for help on using the repository browser.