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.0 KB
|
Line | |
---|
1 | ENTRY(__entry)
|
---|
2 |
|
---|
3 | PHDRS {
|
---|
4 | text PT_LOAD FLAGS(5);
|
---|
5 | data PT_LOAD FLAGS(6);
|
---|
6 | dynamic PT_DYNAMIC;
|
---|
7 | }
|
---|
8 |
|
---|
9 | SECTIONS {
|
---|
10 | . = 0x1000 + SIZEOF_HEADERS;
|
---|
11 |
|
---|
12 | .init : {
|
---|
13 | *(.init);
|
---|
14 | } :text
|
---|
15 | .text : {
|
---|
16 | *(.text);
|
---|
17 | *(.text.*);
|
---|
18 | *(.rodata*);
|
---|
19 | } :text
|
---|
20 |
|
---|
21 | .rel.plt : {
|
---|
22 | *(.rel.plt);
|
---|
23 | }
|
---|
24 | /*
|
---|
25 | *.rel.dyn MUST FOLLOW IMMEDIATELY after .rel.plt
|
---|
26 | * without alignment gap or DT_REL will be broken
|
---|
27 | */
|
---|
28 | .rel.dyn : {
|
---|
29 | *(.rel.*);
|
---|
30 | } :text
|
---|
31 |
|
---|
32 | .dynsym : {
|
---|
33 | *(.dynsym);
|
---|
34 | } :text
|
---|
35 |
|
---|
36 | .dynstr : {
|
---|
37 | *(.dynstr);
|
---|
38 | } :text
|
---|
39 |
|
---|
40 | . = . + 0x1000;
|
---|
41 |
|
---|
42 | .dynamic : {
|
---|
43 | *(.dynamic);
|
---|
44 | } :data :dynamic
|
---|
45 |
|
---|
46 | .data : {
|
---|
47 | *(.data);
|
---|
48 | *(.sdata);
|
---|
49 | } :data
|
---|
50 |
|
---|
51 | .data.rel : {
|
---|
52 | *(.data.rel);
|
---|
53 | } :data
|
---|
54 |
|
---|
55 | .got : {
|
---|
56 | *(.got);
|
---|
57 | } :data
|
---|
58 | .got.plt : {
|
---|
59 | *(.got.plt);
|
---|
60 | } :data
|
---|
61 |
|
---|
62 | .tdata : {
|
---|
63 | _tdata_start = .;
|
---|
64 | *(.tdata);
|
---|
65 | _tdata_end = .;
|
---|
66 | _tbss_start = .;
|
---|
67 | *(.tbss);
|
---|
68 | _tbss_end = .;
|
---|
69 | } :data
|
---|
70 |
|
---|
71 | _tls_alignment = ALIGNOF(.tdata);
|
---|
72 |
|
---|
73 | .bss : {
|
---|
74 | *(.sbss);
|
---|
75 | *(COMMON);
|
---|
76 | *(.bss);
|
---|
77 | } :data
|
---|
78 |
|
---|
79 | .plt : {
|
---|
80 | *(.plt);
|
---|
81 | } :data
|
---|
82 |
|
---|
83 | . = ALIGN(0x1000);
|
---|
84 | _heap = .;
|
---|
85 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.