]> xenbits.xensource.com Git - people/aperard/xtf.git/commitdiff
Fix LTO build in xsa-consoleio-write
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 4 Dec 2019 13:02:01 +0000 (13:02 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 4 Dec 2019 13:02:01 +0000 (13:02 +0000)
The compiler can't spot the assembly reference to zero_page[]

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
tests/xsa-consoleio-write/main.c

index f10a625621003922d0a99218b81477c6210b402f..11fd5c82740e1a630412e7bece7e8dd89349dff6 100644 (file)
@@ -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\";"