lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
Last change
on this file since 7137f74c 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.2 KB
|
Line | |
---|
1 | ENTRY(_start)
|
---|
2 |
|
---|
3 | PHDRS {
|
---|
4 | text PT_LOAD FILEHDR PHDRS FLAGS(5);
|
---|
5 | data PT_LOAD FLAGS(6);
|
---|
6 | tls PT_TLS;
|
---|
7 | }
|
---|
8 |
|
---|
9 | SECTIONS {
|
---|
10 | #ifdef SHLIB
|
---|
11 | . = SEGMENT_START("text-segment", 0);
|
---|
12 | #else
|
---|
13 | . = SEGMENT_START("text-segment", 0x400000);
|
---|
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 | *(.opd);
|
---|
31 | *(.data .data.*);
|
---|
32 | *(.sdata);
|
---|
33 | } :data
|
---|
34 |
|
---|
35 | .tdata : {
|
---|
36 | *(.tdata);
|
---|
37 | *(.tdata.*);
|
---|
38 | *(.gnu.linkonce.td.*);
|
---|
39 | } :data :tls
|
---|
40 |
|
---|
41 | .tbss : {
|
---|
42 | *(.tbss);
|
---|
43 | *(.tbss.*);
|
---|
44 | *(.gnu.linkonce.tb.*);
|
---|
45 | } :data :tls
|
---|
46 |
|
---|
47 | .bss : {
|
---|
48 | *(.sbss);
|
---|
49 | *(.scommon);
|
---|
50 | *(COMMON);
|
---|
51 | *(.bss);
|
---|
52 | } :data
|
---|
53 |
|
---|
54 | __dso_handle = .;
|
---|
55 |
|
---|
56 | .init_array : {
|
---|
57 | #ifndef SHLIB
|
---|
58 | PROVIDE_HIDDEN (__init_array_start = .);
|
---|
59 | #endif
|
---|
60 | KEEP (*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*)))
|
---|
61 | KEEP (*(.init_array .ctors))
|
---|
62 | #ifndef SHLIB
|
---|
63 | PROVIDE_HIDDEN (__init_array_end = .);
|
---|
64 | #endif
|
---|
65 | }
|
---|
66 |
|
---|
67 | .fini_array : {
|
---|
68 | #ifndef SHLIB
|
---|
69 | PROVIDE_HIDDEN (__fini_array_start = .);
|
---|
70 | #endif
|
---|
71 | KEEP (*(SORT_BY_INIT_PRIORITY(.fini_array.*) SORT_BY_INIT_PRIORITY(.dtors.*)))
|
---|
72 | KEEP (*(.fini_array .dtors))
|
---|
73 | #ifndef SHLIB
|
---|
74 | PROVIDE_HIDDEN (__fini_array_end = .);
|
---|
75 | #endif
|
---|
76 | }
|
---|
77 |
|
---|
78 | _end = .;
|
---|
79 |
|
---|
80 | /DISCARD/ : {
|
---|
81 | *(*);
|
---|
82 | }
|
---|
83 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.