zephyr/include/linker
Andrew Boie acda9bf9ce linker-tool-gcc: revise for MMU support
We need to do a few things differently if we are to support
a virtual memory map, i.e. CONFIG_MMU where CONFIG_KERNEL_VM_BASE
is not the same as CONFIG_SRAM_BASE_ADDRESS.

 - All sections must be specified with a VMA and LMA, where
   VMA is the virtual address and LMA is the physical memory
   location.
 - All sections must be specified with ALIGN_WITH_INPUT to
   keep VMAs and LMAs synchronized

To do this, the existing linker macros need some adjustment:

 - GROUP_LINK_IN undefined when CONFIG_KERNEL_VM_BASE is not
   the same as CONFIG_SRAM_BASE_ADDRESS.
 - New macro GROUP_ROM_LINK_IN for text/rodata sections
 - New macro GROUP_NOLOAD_LINK_IN for bss/noinit sections
 - Implicit ALIGN_WITH_INPUT for all sections

GROUP_FOLLOWS_AT is unused anywhere in the kernel for years
now and has been removed.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2021-03-16 15:03:44 -04:00
..
app_smem_aligned.ld
app_smem_unaligned.ld
app_smem.ld
common-noinit.ld linker-tool-gcc: revise for MMU support 2021-03-16 15:03:44 -04:00
common-ram.ld device: store device pm busy status in the state structure 2021-02-19 10:11:20 -05:00
common-rom.ld linker-tool-gcc: revise for MMU support 2021-03-16 15:03:44 -04:00
cplusplus-ram.ld linker-tool-gcc: revise for MMU support 2021-03-16 15:03:44 -04:00
cplusplus-rom.ld linker-tool-gcc: revise for MMU support 2021-03-16 15:03:44 -04:00
debug-sections.ld
intlist.ld linker-tool-gcc: revise for MMU support 2021-03-16 15:03:44 -04:00
kobject-rom.ld
kobject-text.ld linker: kobject-text: align multiline string definition syntax 2020-09-18 09:49:09 -04:00
kobject.ld mmu: ensure gperf data is mapped 2021-01-23 19:47:23 -05:00
linker-defs.h linker-tool-gcc: revise for MMU support 2021-03-16 15:03:44 -04:00
linker-tool-gcc.h linker-tool-gcc: revise for MMU support 2021-03-16 15:03:44 -04:00
linker-tool-mwdt.h ARC: linker: implement linker related definition for MWDT 2020-09-05 10:22:56 -05:00
linker-tool.h ARC: linker: implement linker related definition for MWDT 2020-09-05 10:22:56 -05:00
rel-sections.ld
section_tags.h soc: arm: st_stm32: add support for STM32 backup SRAM 2021-02-15 08:04:24 -05:00
sections.h soc: arm: st_stm32: add support for STM32 backup SRAM 2021-02-15 08:04:24 -05:00
thread-local-storage.ld linker-tool-gcc: revise for MMU support 2021-03-16 15:03:44 -04:00