Add __attribute__((__aligned__(1))) to unaligned symbols from scripts (for s390).
authorMarcin Kościelnicki <koriakin@0x04.net>
Mon, 5 Oct 2015 14:57:16 +0000 (16:57 +0200)
committerCary Coutant <ccoutant@gmail.com>
Wed, 28 Oct 2015 23:49:13 +0000 (16:49 -0700)
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.

gold/ChangeLog
gold/testsuite/binary_test.cc
gold/testsuite/script_test_12a.c
gold/testsuite/script_test_1a.cc
gold/testsuite/script_test_2.cc

index 3cb9f3715b0bbadf4c5a35ef715aeaa2266f145f..3b77230422f6375d36de42d67a4556c86d125879 100644 (file)
@@ -1,3 +1,10 @@
+2015-10-28  Marcin Kościelnicki  <koriakin@0x04.net>
+
+       * 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.
+
 2015-10-28  Marcin Kościelnicki  <koriakin@0x04.net>
 
        * testsuite/debug_msg.sh: Accept more fuzz in line numbers.
index 4ee986897319677947da408b2a5caf0d4f22c24e..6b516fc5f0d7233daef9ba8c1e6897ade7ea664f 100644 (file)
@@ -28,9 +28,9 @@
 #include <cstring>
 #include <stdint.h>
 
-extern char _binary_binary_txt_start[];
-extern char _binary_binary_txt_end[];
-extern char _binary_binary_txt_size[];
+extern char _binary_binary_txt_start[] __attribute__((__aligned__(1)));
+extern char _binary_binary_txt_end[] __attribute__((__aligned__(1)));
+extern char _binary_binary_txt_size[] __attribute__((__aligned__(1)));
 
 int
 main(int, char**)
index 6540027d27d0c1169dcc8c6706c87208a679da3f..85887a4396863cdd0cbcc4a8bd7d63926d831fe4 100644 (file)
@@ -51,7 +51,7 @@
 
 extern int test_array_start;
 extern int test_array_end;
-extern char interleaved;
+extern char interleaved __attribute__((__aligned__(1)));
 
 int
 main(void)
index 648b42a2dad426f5531589fb6b9d889757dcfc23..56dd2a9aa8e98c0df102054d2b75be93aa704ff7 100644 (file)
 
 #include "script_test_1.h"
 
-extern char a, b, c, d, e, f, g;
+extern char
+  a __attribute__((__aligned__(1))),
+  b __attribute__((__aligned__(1))),
+  c __attribute__((__aligned__(1))),
+  d __attribute__((__aligned__(1))),
+  e __attribute__((__aligned__(1))),
+  f __attribute__((__aligned__(1))),
+  g __attribute__((__aligned__(1)));
 int sym = 3;
 int common_sym;
 
index 80ca246775746e1e7a62281fd9d2d12861a0dbe5..9fcacb0429ab3ffb8934ed0b1e39d56a0f3be792 100644 (file)
 #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**)