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

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 18b6a88 was a69d42e, checked in by Jiří Zárevúcky <jiri.zarevucky@…>, 8 years ago

Define _end, and use it instead of the address of __entry in C code.

  • Property mode set to 100644
File size: 911 bytes
Line 
1STARTUP(LIBC_PATH/arch/UARCH/src/entry.o)
2ENTRY(__entry)
3
4PHDRS {
5 text PT_LOAD FILEHDR PHDRS FLAGS(5);
6 data PT_LOAD FLAGS(6);
7 tls PT_TLS;
8}
9
10SECTIONS {
11 . = SEGMENT_START("text-segment", 0x400000);
12#ifndef SHLIB
13 PROVIDE (__executable_start = .);
14#endif
15 . = . + SIZEOF_HEADERS;
16
17 /* Workaround proper alignment of the .init section */
18 . = ALIGN(., 16);
19
20 .init : {
21 *(.init);
22 } :text
23
24 .text : {
25 *(.text .text.*);
26 *(.rodata .rodata.*);
27 } :text
28
29 . = . + 0x4000;
30
31 .got : {
32 /* Tell the linker where we expect GP to point. */
33 __gp = .;
34 *(.got .got.*);
35 } :data
36
37 .data : {
38 *(.opd);
39 *(.data .data.*);
40 *(.sdata);
41 } :data
42
43 .tdata : {
44 *(.tdata);
45 *(.tdata.*);
46 *(.gnu.linkonce.td.*);
47 } :data :tls
48
49 .tbss : {
50 *(.tbss);
51 *(.tbss.*);
52 *(.gnu.linkonce.tb.*);
53 } :data :tls
54
55 .bss : {
56 *(.sbss);
57 *(.scommon);
58 *(COMMON);
59 *(.bss);
60 } :data
61
62 _end = .;
63
64 /DISCARD/ : {
65 *(*);
66 }
67}
Note: See TracBrowser for help on using the repository browser.