source: mainline/uspace/lib/c/arch/mips64/_link.ld.in@ 46d9d13

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

add initial support for mips64
(it does not do anything useful so far and there are probably severe bugs and ABI violations, but it compiles)

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