mirror of
https://sourceware.org/git/glibc.git
synced 2026-01-06 11:51:29 +03:00
2002-12-10 Jakub Jelinek <jakub@redhat.com>
* elf/tst-array1.c (preinit_array, init_array, fini_array): Explicitly align the array to sizeof (void *). * elf/tst-array2dep.c (init_array, fini_array): Likewise.
This commit is contained in:
@@ -34,7 +34,8 @@ init_2 (void)
|
||||
write (STDOUT_FILENO, "DSO init array 2\n", 17);
|
||||
}
|
||||
|
||||
void (*const init_array []) (void) __attribute__ ((section (".init_array"))) =
|
||||
void (*const init_array []) (void)
|
||||
__attribute__ ((section (".init_array"), aligned (sizeof (void *)))) =
|
||||
{
|
||||
&init_0,
|
||||
&init_1,
|
||||
@@ -59,7 +60,8 @@ fini_2 (void)
|
||||
write (STDOUT_FILENO, "DSO fini array 2\n", 17);
|
||||
}
|
||||
|
||||
void (*const fini_array []) (void) __attribute__ ((section (".fini_array"))) =
|
||||
void (*const fini_array []) (void)
|
||||
__attribute__ ((section (".fini_array"), aligned (sizeof (void *)))) =
|
||||
{
|
||||
&fini_0,
|
||||
&fini_1,
|
||||
|
||||
Reference in New Issue
Block a user