source: mainline/uspace/lib/c/arch/ppc32/_link.ld.in@ 3fafe5e0

lfn serial ticket/834-toolchain-update topic/fix-logger-deadlock topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 3fafe5e0 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: 1.2 KB
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 debug PT_NOTE;
9}
10
11SECTIONS {
12 . = SEGMENT_START("text-segment", 0x400000);
13#ifndef SHLIB
14 PROVIDE (__executable_start = .);
15#endif
16 . = . + SIZEOF_HEADERS;
17
18 .init : {
19 *(.init);
20 } :text
21
22 .text : {
23 *(.text .text.*);
24 *(.rodata .rodata.*);
25 } :text
26
27 . = . + 0x1000;
28
29 .data : {
30 *(.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 *(COMMON);
49 *(.bss);
50 } :data
51
52 _end = .;
53
54#ifdef CONFIG_LINE_DEBUG
55 .comment 0 : { *(.comment); } :debug
56 .debug_abbrev 0 : { *(.debug_abbrev); } :debug
57 .debug_aranges 0 : { *(.debug_aranges); } :debug
58 .debug_info 0 : { *(.debug_info); } :debug
59 .debug_line 0 : { *(.debug_line); } :debug
60 .debug_loc 0 : { *(.debug_loc); } :debug
61 .debug_pubnames 0 : { *(.debug_pubnames); } :debug
62 .debug_pubtypes 0 : { *(.debug_pubtypes); } :debug
63 .debug_ranges 0 : { *(.debug_ranges); } :debug
64 .debug_str 0 : { *(.debug_str); } :debug
65#endif
66
67 /DISCARD/ : {
68 *(*);
69 }
70}
Note: See TracBrowser for help on using the repository browser.