From 74cbb839838d770064f0c83010609a134b22f2f8 Mon Sep 17 00:00:00 2001 From: Jeenu Viswambharan Date: Mon, 17 Feb 2014 17:26:51 +0000 Subject: Move translation tables into separate section This patch moves the translation tables into their own section. This saves space that would otherwise have been lost in padding due to page table alignment constraints. The BL31 and BL32 bases have been consequently adjusted. Change-Id: Ibd65ae8a5ce4c4ea9a71a794c95bbff40dc63e65 --- bl2/bl2.ld.S | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'bl2/bl2.ld.S') diff --git a/bl2/bl2.ld.S b/bl2/bl2.ld.S index c1d5d5c2..849297a7 100644 --- a/bl2/bl2.ld.S +++ b/bl2/bl2.ld.S @@ -59,6 +59,15 @@ SECTIONS __RO_END__ = .; } >RAM + /* + * The .xlat_table section is for full, aligned page tables (4K). + * Removing them from .bss avoids forcing 4K alignment on + * the .bss section and eliminates the unecessary zero init + */ + xlat_table (NOLOAD) : { + *(xlat_table) + } >RAM + .data . : { __DATA_START__ = .; *(.data) -- cgit v1.2.3