aboutsummaryrefslogtreecommitdiffstats
path: root/support/ld/common_rom.inc
Commit message (Collapse)AuthorAgeFilesLines
* [support/ld] Unify linker scripts.Marti Bolivar2011-09-131-186/+0
| | | | | | | | | | | | | | | | Add new common.inc, which is common_rom.inc with some DEFINED(_FLASH_BUILD) usages thrown in to allow for RAM builds. It also uses a new REGION_RODATA region alias for read-only data. Move section .USER_FLASH to REGION_RODATA. This means it lives in RAM under RAM builds. Although this might be surprising, not doing so would make RAM builds useless. Modify the individual board linker scripts to properly set REGION_RODATA and _FLASH_BUILD before calling out to common.inc. Delete common_rom.inc, common_ram.inc, common_header.inc, in favor of common.inc. This should fix RAM builds on all boards.
* [support/ld] Add linker support for reconfigurable heap.Marti Bolivar2011-09-121-0/+13
| | | | | | | | | | | | | | | - common_header.inc: Declare EXTERN symbols _lm_heap_start and _lm_heap_end. - common_rom.inc: Check for _lm_heap_start and _lm_heap_end. If they are defined, preserve their values. Otherwise, _lm_heap_start is starts after .bss, and _lm_heap_end is the end of SRAM. This allows existing linker scripts to continue using the old heap scheme, but allows for customizability elsewhere. - syscalls.c: Respect the addresses of _lm_heap_start and _lm_heap_end as the boundaries of the heap in _sbrk().
* common_rom.inc: More comments.Marti Bolivar2011-09-121-8/+20
| | | | Explain what's going on so unfamiliar readers have more hope.
* common_rom.inc: Eliminate apparently useless sections.Marti Bolivar2011-09-091-8/+0
|
* [support/ld] Rename vector table section.Marti Bolivar2011-09-091-4/+1
|
* Linker scripts: Remove useless junk.Marti Bolivar2011-09-091-12/+0
|
* Linker scripts: Rename section targets.Marti Bolivar2011-09-091-7/+0
| | | | | | Use region aliases in common_ram.inc, common_rom.inc. These are provided by the individual board scripts which include these. Note that the aliases have horrible names. We'll need to fix that up.
* Linker scripts: Indent common_ram.inc, common_rom.inc.Marti Bolivar2011-09-091-70/+70
|
* [support/ld] Factor out header from common_rom.inc, common_ram.inc.Marti Bolivar2011-09-071-37/+5
| | | | | | | The linker scripts share an initial section. Factor this out into a new file common_header.inc, and have the main linker scripts include this file. Apart from eliminating a redundancy, this will make it easier to add new linker scripts in the future.
* Refactor linker scripts. Rename irq and exception handlers.Perry Hung2011-02-271-0/+223
Add common linker scripts for ram and rom. Add medium and high density libraries for libcs3.