source: mainline/uspace/lib/c/arch/sparc64/_link.ld.in@ 38d8849

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

Remove undefined references to main program from shared libc.

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