diff options
author | Roland McGrath <roland@gnu.org> | 2002-12-10 23:28:48 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-12-10 23:28:48 +0000 |
commit | c7b2e4f612894cbee71c97d1b6400b0b143621ce (patch) | |
tree | 154c7fe64a532b01f04159e9eb49123fcfb473b5 /elf/tst-array2dep.c | |
parent | dce8f2b62af23b6ef9e89c3a54cfe002941ef6d6 (diff) | |
download | glibc-c7b2e4f612894cbee71c97d1b6400b0b143621ce.zip glibc-c7b2e4f612894cbee71c97d1b6400b0b143621ce.tar.gz glibc-c7b2e4f612894cbee71c97d1b6400b0b143621ce.tar.bz2 |
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.
Diffstat (limited to 'elf/tst-array2dep.c')
-rw-r--r-- | elf/tst-array2dep.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/elf/tst-array2dep.c b/elf/tst-array2dep.c index be46dd1..e1596b5 100644 --- a/elf/tst-array2dep.c +++ b/elf/tst-array2dep.c @@ -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, |