lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
Last change
on this file since c2c4127 was c2c4127, checked in by Jiří Zárevúcky <jiri.zarevucky@…>, 7 years ago |
Do not set STARTUP() in the linker script. Add the file to build script instead.
|
-
Property mode
set to
100644
|
File size:
1.6 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 | debug PT_NOTE;
|
---|
8 | }
|
---|
9 |
|
---|
10 | SECTIONS {
|
---|
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 | . = . + 0x1000;
|
---|
29 |
|
---|
30 | .data : {
|
---|
31 | *(.data);
|
---|
32 | *(.sdata);
|
---|
33 | *(.sdata.*);
|
---|
34 | } :data
|
---|
35 |
|
---|
36 | .tdata : {
|
---|
37 | *(.tdata);
|
---|
38 | *(.tdata.*);
|
---|
39 | *(.gnu.linkonce.td.*);
|
---|
40 | } :data :tls
|
---|
41 |
|
---|
42 | .tbss : {
|
---|
43 | *(.tbss);
|
---|
44 | *(.tbss.*);
|
---|
45 | *(.gnu.linkonce.tb.*);
|
---|
46 | } :data :tls
|
---|
47 |
|
---|
48 | .bss : {
|
---|
49 | *(.sbss);
|
---|
50 | *(COMMON);
|
---|
51 | *(.bss);
|
---|
52 | } :data
|
---|
53 |
|
---|
54 | __dso_handle = .;
|
---|
55 |
|
---|
56 | .init_array : {
|
---|
57 | PROVIDE_HIDDEN (__init_array_start = .);
|
---|
58 | KEEP (*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*)))
|
---|
59 | KEEP (*(.init_array .ctors))
|
---|
60 | PROVIDE_HIDDEN (__init_array_end = .);
|
---|
61 | }
|
---|
62 |
|
---|
63 | .fini_array : {
|
---|
64 | PROVIDE_HIDDEN (__fini_array_start = .);
|
---|
65 | KEEP (*(SORT_BY_INIT_PRIORITY(.fini_array.*) SORT_BY_INIT_PRIORITY(.dtors.*)))
|
---|
66 | KEEP (*(.fini_array .dtors))
|
---|
67 | PROVIDE_HIDDEN (__fini_array_end = .);
|
---|
68 | }
|
---|
69 |
|
---|
70 | _end = .;
|
---|
71 |
|
---|
72 | #ifdef CONFIG_LINE_DEBUG
|
---|
73 | .comment 0 : { *(.comment); } :debug
|
---|
74 | .debug_abbrev 0 : { *(.debug_abbrev); } :debug
|
---|
75 | .debug_aranges 0 : { *(.debug_aranges); } :debug
|
---|
76 | .debug_info 0 : { *(.debug_info); } :debug
|
---|
77 | .debug_line 0 : { *(.debug_line); } :debug
|
---|
78 | .debug_loc 0 : { *(.debug_loc); } :debug
|
---|
79 | .debug_pubnames 0 : { *(.debug_pubnames); } :debug
|
---|
80 | .debug_pubtypes 0 : { *(.debug_pubtypes); } :debug
|
---|
81 | .debug_ranges 0 : { *(.debug_ranges); } :debug
|
---|
82 | .debug_str 0 : { *(.debug_str); } :debug
|
---|
83 | #endif
|
---|
84 |
|
---|
85 | /DISCARD/ : {
|
---|
86 | *(*);
|
---|
87 | }
|
---|
88 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.