summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Boie <andrew.p.boie@intel.com>2016-10-21 13:50:04 -0700
committerAnas Nashif <nashif@linux.intel.com>2016-10-21 23:30:06 +0000
commit1c25f49ac5d385cecc448ca3a3d59c7687f72ebf (patch)
tree1104542ce25f05fcb973e49f3fe3071f9687386b /include
parent662df128cd91702f97bbbc5fb7c0f97b57a33c9c (diff)
x86: arm: add support for custom data at start/end of RAM
This is used by a test case, and it's better to just put this here instead of forking the linker scripts. Change-Id: Ifbb90b73bb26118ae2422cc6feccb3db58a26f2c Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/arch/arm/cortex_m/scripts/linker.ld4
-rw-r--r--include/arch/x86/linker-common-sections.h5
2 files changed, 9 insertions, 0 deletions
diff --git a/include/arch/arm/cortex_m/scripts/linker.ld b/include/arch/arm/cortex_m/scripts/linker.ld
index ff8be519e..d2b425795 100644
--- a/include/arch/arm/cortex_m/scripts/linker.ld
+++ b/include/arch/arm/cortex_m/scripts/linker.ld
@@ -196,6 +196,8 @@ SECTIONS
{
_image_ram_start = .;
__data_ram_start = .;
+ *(.top_of_image_ram)
+ *(.top_of_image_ram.*)
*(.data)
*(".data.*")
} GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
@@ -292,6 +294,8 @@ SECTIONS
*/
*(.noinit)
*(".noinit.*")
+ *(.bottom_of_image_ram)
+ *(.bottom_of_image_ram.*)
} GROUP_LINK_IN(RAMABLE_REGION)
/* Define linker symbols */
diff --git a/include/arch/x86/linker-common-sections.h b/include/arch/x86/linker-common-sections.h
index bc75ad300..edd48469d 100644
--- a/include/arch/x86/linker-common-sections.h
+++ b/include/arch/x86/linker-common-sections.h
@@ -150,6 +150,8 @@ SECTIONS
KEXEC_PGALIGN_PAD(MMU_PAGE_SIZE)
_image_ram_start = .;
__data_ram_start = .;
+ *(.top_of_image_ram)
+ *(.top_of_image_ram.*)
*(.data)
*(".data.*")
. = ALIGN(4);
@@ -260,6 +262,9 @@ SECTIONS
*/
*(.noinit)
*(".noinit.*")
+
+ *(.bottom_of_image_ram)
+ *(.bottom_of_image_ram.*)
} GROUP_LINK_IN(RAM)
/* Define linker symbols */