lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
Last change
on this file since 7aa6b99 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:
816 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 | . = 0x70001000 + SIZEOF_HEADERS;
|
---|
17 | #else
|
---|
18 | . = 0x1000 + 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 | . = . + 0x1000;
|
---|
37 |
|
---|
38 | .data : {
|
---|
39 | *(.opd);
|
---|
40 | *(.data .data.*);
|
---|
41 | *(.sdata);
|
---|
42 | } :data
|
---|
43 |
|
---|
44 | .tdata : {
|
---|
45 | _tdata_start = .;
|
---|
46 | *(.tdata);
|
---|
47 | _tdata_end = .;
|
---|
48 | _tbss_start = .;
|
---|
49 | *(.tbss);
|
---|
50 | _tbss_end = .;
|
---|
51 | } :data
|
---|
52 |
|
---|
53 | _tls_alignment = ALIGNOF(.tdata);
|
---|
54 |
|
---|
55 | .bss : {
|
---|
56 | *(.sbss);
|
---|
57 | *(.scommon);
|
---|
58 | *(COMMON);
|
---|
59 | *(.bss);
|
---|
60 | } :data
|
---|
61 |
|
---|
62 | /DISCARD/ : {
|
---|
63 | *(*);
|
---|
64 | }
|
---|
65 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.