source: mainline/uspace/lib/c/arch/abs32le/_link.ld.in@ 4f205248

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

Define _end, and use it instead of the address of __entry in C code.

  • Property mode set to 100644
File size: 738 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 .text : {
18 *(.text .text.*);
19 *(.rodata .rodata.*);
20 } :text
21
22 . = . + 0x1000;
23
24 .data : {
25 *(.data);
26 *(.data.rel*);
27 } :data
28
29 .got.plt : {
30 *(.got.plt);
31 } :data
32
33 .tdata : {
34 *(.tdata);
35 *(.tdata.*);
36 *(.gnu.linkonce.td.*);
37 } :data :tls
38
39 .tbss : {
40 *(.tbss);
41 *(.tbss.*);
42 *(.gnu.linkonce.tb.*);
43 } :data :tls
44
45 .sbss : {
46 *(.scommon);
47 *(.sbss);
48 }
49
50 .bss : {
51 *(COMMON);
52 *(.bss);
53 } :data
54
55 _end = .;
56
57 /DISCARD/ : {
58 *(*);
59 }
60}
Note: See TracBrowser for help on using the repository browser.