From 4435c29892c43ae9908a42e591747be63102689b Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 10 Dec 2021 15:44:46 -0800 Subject: Support target specific ALIGN for variable alignment test [BZ #28676] Add to support target specific ALIGN for variable alignment test: 1. Alpha: Use 0x10000. 2. MicroBlaze and Nios II: Use 0x8000. 3. All others: Use 0x200000. Reviewed-by: Adhemerval Zanella --- elf/tst-align3.c | 4 +--- elf/tst-alignmod3.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'elf') diff --git a/elf/tst-align3.c b/elf/tst-align3.c index ac86d62..87a8ff8 100644 --- a/elf/tst-align3.c +++ b/elf/tst-align3.c @@ -17,11 +17,9 @@ . */ #include +#include #include -/* This should cover all possible page sizes we currently support. */ -#define ALIGN 0x200000 - int bar __attribute__ ((aligned (ALIGN))) = 1; extern int do_load_test (void); diff --git a/elf/tst-alignmod3.c b/elf/tst-alignmod3.c index 0d33f23..9520c35 100644 --- a/elf/tst-alignmod3.c +++ b/elf/tst-alignmod3.c @@ -17,11 +17,9 @@ . */ #include +#include #include -/* This should cover all possible page sizes we currently support. */ -#define ALIGN 0x200000 - int foo __attribute__ ((aligned (ALIGN))) = 1; void -- cgit v1.1