-
Notifications
You must be signed in to change notification settings - Fork 7
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
1 changed file
with
13 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,26 @@ | ||
/* | ||
* Very simple linker script, combing the text and data sections | ||
* and putting them starting at address 0x800. | ||
*/ | ||
MEMORY | ||
{ | ||
/* | ||
* Memory for the stack and sections | ||
*/ | ||
RAM (rwx) : ORIGIN = 0x8000, LENGTH = 1024K | ||
} | ||
|
||
SECTIONS { | ||
/* Put the initialisation code at 0x8000, leaving room for ARM | ||
/* Put the initialization code at 0x8000, leaving room for ARM | ||
* and the stack. It also conforms to the standard expectations. | ||
*/ | ||
.init 0x8000 : { | ||
.init : { | ||
*(.init) | ||
} | ||
} > RAM | ||
|
||
/* Put the rest of code next */ | ||
.text : { | ||
*(.text) | ||
} | ||
} > RAM | ||
|
||
/* Put the data after the code */ | ||
.data : { | ||
*(.data) | ||
} | ||
} > RAM | ||
} |