lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
Last change
on this file since 66855b2 was 66855b2, checked in by Jiří Zárevúcky <jiri.zarevucky@…>, 7 years ago |
Fix a linker script issue I introduced.
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | STARTUP(LIBC_PATH/arch/UARCH/src/entry.o)
|
---|
2 | ENTRY(_start)
|
---|
3 |
|
---|
4 | PHDRS {
|
---|
5 | text PT_LOAD FILEHDR PHDRS FLAGS(5);
|
---|
6 | data PT_LOAD FLAGS(6);
|
---|
7 | tls PT_TLS;
|
---|
8 | debug PT_NOTE;
|
---|
9 | }
|
---|
10 |
|
---|
11 | SECTIONS {
|
---|
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 | *(.data.rel*);
|
---|
34 | } :data
|
---|
35 |
|
---|
36 | .got.plt : {
|
---|
37 | *(.got.plt);
|
---|
38 | } :data
|
---|
39 |
|
---|
40 | .tdata : {
|
---|
41 | *(.tdata);
|
---|
42 | *(.tdata.*);
|
---|
43 | *(.gnu.linkonce.td.*);
|
---|
44 | } :data :tls
|
---|
45 |
|
---|
46 | .tbss : {
|
---|
47 | *(.tbss);
|
---|
48 | *(.tbss.*);
|
---|
49 | *(.gnu.linkonce.tb.*);
|
---|
50 | } :data :tls
|
---|
51 |
|
---|
52 | .bss : {
|
---|
53 | *(COMMON);
|
---|
54 | *(.bss);
|
---|
55 | } :data
|
---|
56 |
|
---|
57 | _end = .;
|
---|
58 |
|
---|
59 | #ifdef CONFIG_LINE_DEBUG
|
---|
60 | .comment 0 : { *(.comment); } :debug
|
---|
61 | .debug_abbrev 0 : { *(.debug_abbrev); } :debug
|
---|
62 | .debug_aranges 0 : { *(.debug_aranges); } :debug
|
---|
63 | .debug_info 0 : { *(.debug_info); } :debug
|
---|
64 | .debug_line 0 : { *(.debug_line); } :debug
|
---|
65 | .debug_loc 0 : { *(.debug_loc); } :debug
|
---|
66 | .debug_pubnames 0 : { *(.debug_pubnames); } :debug
|
---|
67 | .debug_pubtypes 0 : { *(.debug_pubtypes); } :debug
|
---|
68 | .debug_ranges 0 : { *(.debug_ranges); } :debug
|
---|
69 | .debug_str 0 : { *(.debug_str); } :debug
|
---|
70 | #endif
|
---|
71 |
|
---|
72 | /DISCARD/ : {
|
---|
73 | *(*);
|
---|
74 | }
|
---|
75 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.