source: mainline/uspace/srv/loader/arch/mips32/_link.ld.in@ e50cd7f

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

mips32: improve linker scripts

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