about summary refs log tree commit diff
path: root/elf/tst-align3.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2021-12-10 15:44:46 -0800
committerH.J. Lu <hjl.tools@gmail.com>2021-12-14 14:50:33 -0800
commit4435c29892c43ae9908a42e591747be63102689b (patch)
tree957a8c2bb78f61acfb002b52f057a216a07a4e37 /elf/tst-align3.c
parentf6ff87868a4256305464b312096f6bbeda501515 (diff)
downloadglibc-4435c29892c43ae9908a42e591747be63102689b.tar.gz
glibc-4435c29892c43ae9908a42e591747be63102689b.tar.xz
glibc-4435c29892c43ae9908a42e591747be63102689b.zip
Support target specific ALIGN for variable alignment test [BZ #28676]
Add <tst-file-align.h> 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  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'elf/tst-align3.c')
-rw-r--r--elf/tst-align3.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/elf/tst-align3.c b/elf/tst-align3.c
index ac86d623a6..87a8ff81a0 100644
--- a/elf/tst-align3.c
+++ b/elf/tst-align3.c
@@ -17,11 +17,9 @@
    <https://www.gnu.org/licenses/>.  */
 
 #include <support/check.h>
+#include <tst-file-align.h>
 #include <tst-stack-align.h>
 
-/* 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);