source: mainline/uspace/lib/c/arch/arm32/_link.ld.in@ a69d42e

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since a69d42e 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: 732 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 . = . + 0x1000;
27
28 .data : {
29 *(.opd);
30 *(.data .data.*);
31 *(.sdata);
32 } :data
33
34 .tdata : {
35 *(.tdata);
36 *(.tdata.*);
37 *(.gnu.linkonce.td.*);
38 } :data :tls
39
40 .tbss : {
41 *(.tbss);
42 *(.tbss.*);
43 *(.gnu.linkonce.tb.*);
44 } :data :tls
45
46 .bss : {
47 *(.sbss);
48 *(.scommon);
49 *(COMMON);
50 *(.bss);
51 } :data
52
53 _end = .;
54
55 /DISCARD/ : {
56 *(*);
57 }
58}
Note: See TracBrowser for help on using the repository browser.