summaryrefslogtreecommitdiff
path: root/payloads/libpayload
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload')
-rw-r--r--payloads/libpayload/arch/arm64/libpayload.ldscript2
-rw-r--r--payloads/libpayload/arch/arm64/mmu.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/payloads/libpayload/arch/arm64/libpayload.ldscript b/payloads/libpayload/arch/arm64/libpayload.ldscript
index f9fb771da6..e225aa8bca 100644
--- a/payloads/libpayload/arch/arm64/libpayload.ldscript
+++ b/payloads/libpayload/arch/arm64/libpayload.ldscript
@@ -58,6 +58,8 @@ SECTIONS
_edata = .;
.bss : {
+ *(.ttb_buffer)
+
*(.sbss)
*(.sbss.*)
*(.bss)
diff --git a/payloads/libpayload/arch/arm64/mmu.c b/payloads/libpayload/arch/arm64/mmu.c
index 4c8f8c15a8..bb7954473c 100644
--- a/payloads/libpayload/arch/arm64/mmu.c
+++ b/payloads/libpayload/arch/arm64/mmu.c
@@ -41,7 +41,8 @@ static unsigned int max_tables;
static uint64_t *xlat_addr;
static int free_idx;
-static uint8_t ttb_buffer[TTB_DEFAULT_SIZE] __attribute__((aligned(GRANULE_SIZE)));
+static uint8_t ttb_buffer[TTB_DEFAULT_SIZE] __aligned(GRANULE_SIZE)
+ __attribute__((__section__(".ttb_buffer")));
static const char * const tag_to_string[] = {
[TYPE_NORMAL_MEM] = "normal",