-
-
Notifications
You must be signed in to change notification settings - Fork 19.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Maybe this can replace several others
- Loading branch information
1 parent
bb8a75e
commit 96f42a2
Showing
1 changed file
with
24 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* custom.ld - Linker script using custom environment defines | ||
* | ||
* LD_MAX_SIZE seems to be defined by the base platform build. | ||
* | ||
* Provided by offset_and_rename.py : | ||
* LD_MAX_DATA_SIZE <= board_upload.maximum_ram_size | ||
* LD_FLASH_OFFSET <= board_build.offset -- also used for marlin.relocate_vtab() | ||
*/ | ||
|
||
MEMORY | ||
{ | ||
ram (rwx) : ORIGIN = 0x20000000, LENGTH = LD_MAX_DATA_SIZE | ||
rom (rx) : ORIGIN = 0x08000000 + LD_FLASH_OFFSET, LENGTH = LD_MAX_SIZE - LD_FLASH_OFFSET | ||
} | ||
|
||
/* Provide memory region aliases for common.inc */ | ||
REGION_ALIAS("REGION_TEXT", rom); | ||
REGION_ALIAS("REGION_DATA", ram); | ||
REGION_ALIAS("REGION_BSS", ram); | ||
REGION_ALIAS("REGION_RODATA", rom); | ||
|
||
/* Let common.inc handle the real work. */ | ||
INCLUDE common.inc |