lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
Last change
on this file since 4ddbea7 was 4ddbea7, checked in by Jiri Svoboda <jiri@…>, 14 years ago |
Bring linker scripts closer to the default one (debug, tbss).
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o)
|
---|
2 | ENTRY(__entry)
|
---|
3 |
|
---|
4 | PHDRS {
|
---|
5 | interp PT_INTERP;
|
---|
6 | text PT_LOAD FLAGS(5);
|
---|
7 | data PT_LOAD FLAGS(6);
|
---|
8 | dynamic PT_DYNAMIC;
|
---|
9 | }
|
---|
10 |
|
---|
11 | SECTIONS {
|
---|
12 | . = 0x1000 + SIZEOF_HEADERS;
|
---|
13 |
|
---|
14 | .interp : {
|
---|
15 | *(.interp);
|
---|
16 | } :text :interp
|
---|
17 |
|
---|
18 | /* Align on word boundary -- instructions will follow. */
|
---|
19 | . = ALIGN(4);
|
---|
20 |
|
---|
21 | .init : {
|
---|
22 | *(.init);
|
---|
23 | } :text
|
---|
24 | .text : {
|
---|
25 | *(.text);
|
---|
26 | *(.text.*);
|
---|
27 | *(.rodata*);
|
---|
28 | } :text
|
---|
29 |
|
---|
30 | .rel.plt : {
|
---|
31 | *(.rel.plt);
|
---|
32 | } :text
|
---|
33 | /*
|
---|
34 | *.rel.dyn MUST FOLLOW IMMEDIATELY after .rel.plt
|
---|
35 | * without alignment gap or DT_REL will be broken
|
---|
36 | */
|
---|
37 | .rel.dyn : {
|
---|
38 | *(.rel.*);
|
---|
39 | } :text
|
---|
40 |
|
---|
41 | .dynsym : {
|
---|
42 | *(.dynsym);
|
---|
43 | } :text
|
---|
44 |
|
---|
45 | .dynstr : {
|
---|
46 | *(.dynstr);
|
---|
47 | } :text
|
---|
48 |
|
---|
49 | . = . + 0x1000;
|
---|
50 |
|
---|
51 | .dynamic : {
|
---|
52 | *(.dynamic);
|
---|
53 | } :data :dynamic
|
---|
54 |
|
---|
55 | .data : {
|
---|
56 | *(.data);
|
---|
57 | *(.sdata);
|
---|
58 | } :data
|
---|
59 |
|
---|
60 | .data.rel : {
|
---|
61 | *(.data.rel);
|
---|
62 | } :data
|
---|
63 |
|
---|
64 | .got : {
|
---|
65 | *(.got);
|
---|
66 | } :data
|
---|
67 | .got.plt : {
|
---|
68 | *(.got.plt);
|
---|
69 | } :data
|
---|
70 |
|
---|
71 | /* .tdata : {
|
---|
72 | _tdata_start = .;
|
---|
73 | *(.tdata);
|
---|
74 | _tdata_end = .;
|
---|
75 | _tbss_start = .;
|
---|
76 | *(.tbss);
|
---|
77 | _tbss_end = .;
|
---|
78 | } :data
|
---|
79 |
|
---|
80 | _tls_alignment = ALIGNOF(.tdata);
|
---|
81 |
|
---|
82 | */
|
---|
83 | .bss : {
|
---|
84 | *(.sbss);
|
---|
85 | *(COMMON);
|
---|
86 | *(.bss);
|
---|
87 | } :data
|
---|
88 |
|
---|
89 | .plt : {
|
---|
90 | *(.plt);
|
---|
91 | } :data
|
---|
92 |
|
---|
93 | /DISCARD/ : {
|
---|
94 | *(.comment);
|
---|
95 | *(.gnu.attributes);
|
---|
96 | }
|
---|
97 |
|
---|
98 | . = ALIGN(0x1000);
|
---|
99 | _heap = .;
|
---|
100 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.