arm64: linker: define z_mapped_* symbols
Add linker symbols corresponding to the start and end of the mapped Zephyr image. This is not used by the ARM arch yet, but is required to compile the core kernel MMU code. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
94aedfbc77
commit
951e4a8a9a
1 changed files with 8 additions and 1 deletions
|
@ -104,7 +104,9 @@ SECTIONS
|
|||
SECTION_PROLOGUE(_TEXT_SECTION_NAME,,)
|
||||
{
|
||||
_image_text_start = .;
|
||||
|
||||
#ifndef CONFIG_XIP
|
||||
z_mapped_start = .;
|
||||
#endif
|
||||
_vector_start = .;
|
||||
KEEP(*(.exc_vector_table))
|
||||
KEEP(*(".exc_vector_table.*"))
|
||||
|
@ -210,6 +212,9 @@ SECTIONS
|
|||
*/
|
||||
. = ALIGN(_region_min_align);
|
||||
_image_ram_start = .;
|
||||
#ifdef CONFIG_XIP
|
||||
z_mapped_start = .;
|
||||
#endif
|
||||
|
||||
/* Located in generated directory. This file is populated by the
|
||||
* zephyr_linker_sources() Cmake function.
|
||||
|
@ -285,6 +290,8 @@ SECTIONS
|
|||
|
||||
_image_ram_end = .;
|
||||
_end = .; /* end of image */
|
||||
z_mapped_end = .;
|
||||
z_mapped_size = z_mapped_end - z_mapped_start;
|
||||
|
||||
__kernel_ram_end = RAM_ADDR + RAM_SIZE;
|
||||
__kernel_ram_size = __kernel_ram_end - __kernel_ram_start;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue