aboutsummaryrefslogtreecommitdiff
path: root/gold/testsuite/script_test_2.cc
diff options
context:
space:
mode:
authorMarcin Koƛcielnicki <koriakin@0x04.net>2015-10-05 16:57:16 +0200
committerCary Coutant <ccoutant@gmail.com>2015-10-28 16:49:13 -0700
commit238830c697fdfca5c9cbb0bbb24fd215f643a934 (patch)
tree382d2d7adde95e2b079cac1c902c543f909c8224 /gold/testsuite/script_test_2.cc
parentbd890911dac4a201cb08c54ad5a7444b7306151d (diff)
downloadbinutils-238830c697fdfca5c9cbb0bbb24fd215f643a934.zip
binutils-238830c697fdfca5c9cbb0bbb24fd215f643a934.tar.gz
binutils-238830c697fdfca5c9cbb0bbb24fd215f643a934.tar.bz2
Add __attribute__((__aligned__(1))) to unaligned symbols from scripts (for s390).
gold/ * testsuite/binary_test.cc: Add __attribute__((aligned(1))). * testsuite/script_test_12a.c: Likewise. * testsuite/script_test_1a.cc: Likewise. * testsuite/script_test_2.cc: Likewise.
Diffstat (limited to 'gold/testsuite/script_test_2.cc')
-rw-r--r--gold/testsuite/script_test_2.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/gold/testsuite/script_test_2.cc b/gold/testsuite/script_test_2.cc
index 80ca246..9fcacb0 100644
--- a/gold/testsuite/script_test_2.cc
+++ b/gold/testsuite/script_test_2.cc
@@ -28,15 +28,15 @@
#include <cstring>
#include <stdint.h>
-extern char start_test_area[];
-extern char start_test_area_1[];
-extern char start_data[];
-extern char end_data[];
-extern char start_fill[];
-extern char end_fill[];
-extern char end_test_area[];
-extern char test_addr[];
-extern char test_addr_alias[];
+extern char start_test_area[] __attribute__((__aligned__(1)));
+extern char start_test_area_1[] __attribute__((__aligned__(1)));
+extern char start_data[] __attribute__((__aligned__(1)));
+extern char end_data[] __attribute__((__aligned__(1)));
+extern char start_fill[] __attribute__((__aligned__(1)));
+extern char end_fill[] __attribute__((__aligned__(1)));
+extern char end_test_area[] __attribute__((__aligned__(1)));
+extern char test_addr[] __attribute__((__aligned__(1)));
+extern char test_addr_alias[] __attribute__((__aligned__(1)));
int
main(int, char**)