From 2e7a3504ee4efb11bc8a275bf9598932250ffec8 Mon Sep 17 00:00:00 2001 From: Andrew Cooper Date: Wed, 4 Dec 2019 13:02:01 +0000 Subject: [PATCH] Fix LTO build in xsa-consoleio-write The compiler can't spot the assembly reference to zero_page[] Signed-off-by: Andrew Cooper --- tests/xsa-consoleio-write/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/xsa-consoleio-write/main.c b/tests/xsa-consoleio-write/main.c index f10a625..11fd5c8 100644 --- a/tests/xsa-consoleio-write/main.c +++ b/tests/xsa-consoleio-write/main.c @@ -18,7 +18,7 @@ const char test_title[] = "CONSOLEIO_write stack overflow PoC"; -uint8_t zero_page[PAGE_SIZE] __page_aligned_bss; +uint8_t zero_page[PAGE_SIZE] __page_aligned_bss __used; /* Have the assembler build an L1/L2 pair mapping zero_page[] many times. */ asm (".section \".data.page_aligned\", \"aw\";" -- 2.39.5