+2012-10-29 Andreas Jaeger <aj@suse.de>
+
+ * elf/tst-array1.c (fini_array): Make writeable so that it can be
+ merged with constructor/destructor.
+ (init_array): Likewise.
+ * elf/tst-array2dep.c (fini_array): Likewise.
+ (init_array): Likewise.
+
2012-10-29 Mike Frysinger <vapier@gentoo.org>
* manual/message.texi: Delete @cartouche tags.
write (STDOUT_FILENO, "init array 2\n", 13);
}
-void (*const init_array []) (void)
+void (*init_array []) (void)
__attribute__ ((section (".init_array"), aligned (sizeof (void *)))) =
{
&init_0,
write (STDOUT_FILENO, "fini array 2\n", 13);
}
-void (*const fini_array []) (void)
+void (*fini_array []) (void)
__attribute__ ((section (".fini_array"), aligned (sizeof (void *)))) =
{
&fini_0,
write (STDOUT_FILENO, "DSO init array 2\n", 17);
}
-void (*const init_array []) (void)
+void (*init_array []) (void)
__attribute__ ((section (".init_array"), aligned (sizeof (void *)))) =
{
&init_0,
write (STDOUT_FILENO, "DSO fini array 2\n", 17);
}
-void (*const fini_array []) (void)
+void (*fini_array []) (void)
__attribute__ ((section (".fini_array"), aligned (sizeof (void *)))) =
{
&fini_0,