source: mainline/uspace/lib/c/arch/mips32/_link.ld.in@ fc0b2a8

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

Revert "Don't use custom ldscripts in uspace. (#38)"

This reverts commit a05ec6671002c451fceb01aa0ab3f71f004efb6d.

Needs more work.

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