-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
85 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
|
||
MEMORY { | ||
ramheader (r!wx) : ORIGIN = 0x0000, LENGTH = 1K | ||
ramnone (r!wx) : ORIGIN = 0x1000, LENGTH = 3K | ||
ramrx (rx!w) : ORIGIN = 0x2000, LENGTH = 4K | ||
ramrw (rw!x) : ORIGIN = 0x3000, LENGTH = 4K | ||
} | ||
|
||
PHDRS { | ||
headers PT_PHDR PHDRS; | ||
phdr PT_LOAD FILEHDR PHDRS FLAGS(4); | ||
text PT_LOAD FLAGS(5); | ||
data PT_LOAD FLAGS(6); | ||
bss PT_LOAD FLAGS(6); | ||
dynamic PT_DYNAMIC; | ||
} | ||
|
||
SECTIONS { | ||
|
||
.dynamic : { | ||
*(.dynamic) | ||
} > ramnone : phdr | ||
|
||
.dynsym : { | ||
*(.dynsym) | ||
} > ramnone : phdr | ||
|
||
.dynstr : { | ||
*(.dynstr) | ||
} > ramnone : phdr | ||
|
||
.hash : { | ||
*(.hash) | ||
} > ramnone : phdr | ||
|
||
.gnu.hash : { | ||
*(.gnu.hash) | ||
} > ramnone : phdr | ||
|
||
.eh_frame : { | ||
*(.eh_frame) | ||
} > ramnone : phdr | ||
|
||
.text : { | ||
. = ALIGN(4096); | ||
PROVIDE( __text_start = . ); | ||
*(.text.init) *(.text .text.*) | ||
PROVIDE( __text_end = . ); | ||
} > ramrx : text | ||
|
||
.rodata : { | ||
*(.rodata .rodata.*) | ||
} > ramrx : text | ||
|
||
.data : { | ||
*(*.sdata .sdata*) *(.data .data.*) | ||
} > ramrw : data | ||
|
||
.bss : { | ||
*(.sbss .sbss.*) *(.bss .bss.*) | ||
} > ramrw : bss | ||
|
||
} |