From: Andrew Cooper Date: Wed, 4 Dec 2019 13:02:01 +0000 (+0000) Subject: Fix LTO build in xsa-consoleio-write X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=2e7a3504ee4efb11bc8a275bf9598932250ffec8;p=people%2Fandrewcoop%2Fxen-test-framework.git Fix LTO build in xsa-consoleio-write The compiler can't spot the assembly reference to zero_page[] Signed-off-by: Andrew Cooper --- 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\";"