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

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since a2eb85d 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: 774 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 .init : {
18 *(.init);
19 } :text
20
21 .text : {
22 *(.text .text.*);
23 *(.rodata .rodata.*);
24 } :text
25
26 . = . + 0x4000;
27
28 .data : {
29 *(.data);
30 *(.data.rel*);
31 } :data
32
33 .got : {
34 _gp = .;
35 *(.got);
36 } :data
37
38 .tdata : {
39 *(.tdata);
40 *(.tdata.*);
41 *(.gnu.linkonce.td.*);
42 } :data :tls
43
44 .tbss : {
45 *(.tbss);
46 *(.tbss.*);
47 *(.gnu.linkonce.tb.*);
48 } :data :tls
49
50 .sbss : {
51 *(.scommon);
52 *(.sbss);
53 }
54
55 .bss : {
56 *(.bss);
57 *(COMMON);
58 } :data
59
60 _end = .;
61
62 /DISCARD/ : {
63 *(*);
64 }
65}
Note: See TracBrowser for help on using the repository browser.