lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
Last change
on this file since 91889d5 was 0783634, checked in by Martin Decky <martin@…>, 13 years ago |
place the .interp section behind the other sections in the text segment
the explicit alignment directive (which causes issues such as #491) is no longer needed
|
-
Property mode
set to
100644
|
File size:
903 bytes
|
Line | |
---|
1 | STARTUP(LIBC_PATH/arch/UARCH/src/entry.o)
|
---|
2 | ENTRY(__entry)
|
---|
3 |
|
---|
4 | PHDRS {
|
---|
5 | #ifdef LOADER
|
---|
6 | interp PT_INTERP;
|
---|
7 | text PT_LOAD FILEHDR PHDRS FLAGS(5);
|
---|
8 | #else
|
---|
9 | text PT_LOAD FLAGS(5);
|
---|
10 | #endif
|
---|
11 | data PT_LOAD FLAGS(6);
|
---|
12 | }
|
---|
13 |
|
---|
14 | SECTIONS {
|
---|
15 | #ifdef LOADER
|
---|
16 | . = 0x70004000 + SIZEOF_HEADERS;
|
---|
17 | #else
|
---|
18 | . = 0x4000 + SIZEOF_HEADERS;
|
---|
19 | #endif
|
---|
20 |
|
---|
21 | .init : {
|
---|
22 | *(.init);
|
---|
23 | } :text
|
---|
24 |
|
---|
25 | .text : {
|
---|
26 | *(.text .text.*);
|
---|
27 | *(.rodata .rodata.*);
|
---|
28 | } :text
|
---|
29 |
|
---|
30 | #ifdef LOADER
|
---|
31 | .interp : {
|
---|
32 | *(.interp);
|
---|
33 | } :interp :text
|
---|
34 | #endif
|
---|
35 |
|
---|
36 | . = . + 0x4000;
|
---|
37 |
|
---|
38 | .data : {
|
---|
39 | *(.data);
|
---|
40 | *(.data.rel*);
|
---|
41 | } :data
|
---|
42 |
|
---|
43 | .got : {
|
---|
44 | _gp = .;
|
---|
45 | *(.got);
|
---|
46 | } :data
|
---|
47 |
|
---|
48 | .tdata : {
|
---|
49 | _tdata_start = .;
|
---|
50 | *(.tdata);
|
---|
51 | _tdata_end = .;
|
---|
52 | } :data
|
---|
53 |
|
---|
54 | .tbss : {
|
---|
55 | _tbss_start = .;
|
---|
56 | *(.tbss);
|
---|
57 | _tbss_end = .;
|
---|
58 | } :data
|
---|
59 |
|
---|
60 | _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss));
|
---|
61 |
|
---|
62 | .sbss : {
|
---|
63 | *(.scommon);
|
---|
64 | *(.sbss);
|
---|
65 | }
|
---|
66 |
|
---|
67 | .bss : {
|
---|
68 | *(.bss);
|
---|
69 | *(COMMON);
|
---|
70 | } :data
|
---|
71 |
|
---|
72 | /DISCARD/ : {
|
---|
73 | *(*);
|
---|
74 | }
|
---|
75 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.