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

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since bc0ccab was 9bcdbc5, checked in by Martin Decky <martin@…>, 14 years ago

make sure the code in .init is always aligned reasonably
(despite .interp section being also present in the text segment)

  • Property mode set to 100644
File size: 955 bytes
Line 
1STARTUP(LIBC_PATH/arch/UARCH/src/entry.o)
2ENTRY(__entry)
3
4PHDRS {
5#ifdef LOADER
6 interp PT_INTERP;
7 text PT_LOAD FLAGS(5);
8#else
9 text PT_LOAD FLAGS(5);
10#endif
11 data PT_LOAD FLAGS(6);
12}
13
14SECTIONS {
15#ifdef LOADER
16 . = 0x800000000 + SIZEOF_HEADERS;
17
18 .interp : {
19 *(.interp);
20 } :interp :text
21#else
22 . = 0x4000 + SIZEOF_HEADERS;
23#endif
24
25 /* Make sure the code is aligned reasonably */
26 . = ALIGN(., 16);
27
28 .init : {
29 *(.init);
30 } :text
31
32 .text : {
33 *(.text .text.*);
34 *(.rodata .rodata.*);
35 } :text
36
37 . = . + 0x4000;
38
39 .got : {
40 /* Tell the linker where we expect GP to point. */
41 __gp = .;
42 *(.got .got.*);
43 } :data
44
45 .data : {
46 *(.opd);
47 *(.data .data.*);
48 *(.sdata);
49 } :data
50
51 .tdata : {
52 _tdata_start = .;
53 *(.tdata);
54 _tdata_end = .;
55 _tbss_start = .;
56 *(.tbss);
57 _tbss_end = .;
58 } :data
59
60 _tls_alignment = ALIGNOF(.tdata);
61
62 .bss : {
63 *(.sbss);
64 *(.scommon);
65 *(COMMON);
66 *(.bss);
67 } :data
68
69 /DISCARD/ : {
70 *(*);
71 }
72}
Note: See TracBrowser for help on using the repository browser.