aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/nios2/tst-file-align.h
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 /sysdeps/nios2/tst-file-align.h
parentf6ff87868a4256305464b312096f6bbeda501515 (diff)
downloadglibc-4435c29892c43ae9908a42e591747be63102689b.zip
glibc-4435c29892c43ae9908a42e591747be63102689b.tar.gz
glibc-4435c29892c43ae9908a42e591747be63102689b.tar.bz2
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 'sysdeps/nios2/tst-file-align.h')
-rw-r--r--sysdeps/nios2/tst-file-align.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/sysdeps/nios2/tst-file-align.h b/sysdeps/nios2/tst-file-align.h
new file mode 100644
index 0000000..589a2d5
--- /dev/null
+++ b/sysdeps/nios2/tst-file-align.h
@@ -0,0 +1,20 @@
+/* Check file alignment. Nios II version.
+ Copyright (C) 2021 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ <https://www.gnu.org/licenses/>. */
+
+/* This should cover all possible alignments we currently support. */
+#define ALIGN 0x8000