lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
Last change
on this file since 79522a7 was a3aa1e1, checked in by Jakub Jermar <jakub@…>, 19 years ago |
Unify init linker scripts to contain two properly aligned and properly flagged segments.
|
-
Property mode
set to
100644
|
File size:
437 bytes
|
Line | |
---|
1 | STARTUP(../libc/arch/ARCH/src/entry.o)
|
---|
2 | ENTRY(__entry)
|
---|
3 |
|
---|
4 | PHDRS {
|
---|
5 | text PT_LOAD FLAGS(5);
|
---|
6 | data PT_LOAD FLAGS(6);
|
---|
7 | }
|
---|
8 |
|
---|
9 | SECTIONS {
|
---|
10 | . = 0x1000;
|
---|
11 |
|
---|
12 | .init ALIGN(0x1000) : SUBALIGN(0x1000) {
|
---|
13 | *(.init);
|
---|
14 | } :text
|
---|
15 | .text : {
|
---|
16 | *(.text);
|
---|
17 | *(.rodata*);
|
---|
18 | } :text
|
---|
19 |
|
---|
20 | .data ALIGN(0x1000) : SUBALIGN(0x1000) {
|
---|
21 | *(.data);
|
---|
22 | } :data
|
---|
23 | .bss : {
|
---|
24 | *(COMMON);
|
---|
25 | *(.bss);
|
---|
26 | } :data
|
---|
27 |
|
---|
28 | /DISCARD/ : {
|
---|
29 | *(*);
|
---|
30 | }
|
---|
31 |
|
---|
32 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.