source: mainline/uspace/lib/c/arch/ppc32/_link.ld.in@ 2d56e2e

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 2d56e2e was be0f5e4, checked in by Martin Decky <martin@…>, 7 years ago

cstyle (no change in functionality)

  • Property mode set to 100644
File size: 1.7 KB
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 debug PT_NOTE;
9}
10
11SECTIONS {
12#ifdef SHLIB
13 . = SEGMENT_START("text-segment", 0);
14#else
15 . = SEGMENT_START("text-segment", 0x400000);
16 PROVIDE (__executable_start = .);
17#endif
18 . = . + SIZEOF_HEADERS;
19
20 .init : {
21 *(.init);
22 } :text
23
24 .text : {
25 *(.text .text.*);
26 *(.rodata .rodata.*);
27 } :text
28
29 . = . + 0x1000;
30
31 .data : {
32 *(.data);
33 *(.sdata);
34 *(.sdata.*);
35 } :data
36
37 .tdata : {
38 *(.tdata);
39 *(.tdata.*);
40 *(.gnu.linkonce.td.*);
41 } :data :tls
42
43 .tbss : {
44 *(.tbss);
45 *(.tbss.*);
46 *(.gnu.linkonce.tb.*);
47 } :data :tls
48
49 .bss : {
50 *(.sbss);
51 *(COMMON);
52 *(.bss);
53 } :data
54
55 __dso_handle = .;
56
57 .init_array : {
58 PROVIDE_HIDDEN (__init_array_start = .);
59 KEEP (*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*)))
60 KEEP (*(.init_array .ctors))
61 PROVIDE_HIDDEN (__init_array_end = .);
62 }
63
64 .fini_array : {
65 PROVIDE_HIDDEN (__fini_array_start = .);
66 KEEP (*(SORT_BY_INIT_PRIORITY(.fini_array.*) SORT_BY_INIT_PRIORITY(.dtors.*)))
67 KEEP (*(.fini_array .dtors))
68 PROVIDE_HIDDEN (__fini_array_end = .);
69 }
70
71 _end = .;
72
73#ifdef CONFIG_LINE_DEBUG
74 .comment 0 : { *(.comment); } :debug
75 .debug_abbrev 0 : { *(.debug_abbrev); } :debug
76 .debug_aranges 0 : { *(.debug_aranges); } :debug
77 .debug_info 0 : { *(.debug_info); } :debug
78 .debug_line 0 : { *(.debug_line); } :debug
79 .debug_loc 0 : { *(.debug_loc); } :debug
80 .debug_pubnames 0 : { *(.debug_pubnames); } :debug
81 .debug_pubtypes 0 : { *(.debug_pubtypes); } :debug
82 .debug_ranges 0 : { *(.debug_ranges); } :debug
83 .debug_str 0 : { *(.debug_str); } :debug
84#endif
85
86 /DISCARD/ : {
87 *(*);
88 }
89}
Note: See TracBrowser for help on using the repository browser.