From b0988f108c336734efff4a2c0e8117642cb3c62b Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Tue, 30 Oct 2012 08:58:04 +0100 Subject: Fix fini_array and init_array sections * 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. --- elf/tst-array1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'elf/tst-array1.c') diff --git a/elf/tst-array1.c b/elf/tst-array1.c index 4d78db6..ca9bdf4 100644 --- a/elf/tst-array1.c +++ b/elf/tst-array1.c @@ -60,7 +60,7 @@ init_2 (void) 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, @@ -86,7 +86,7 @@ fini_2 (void) 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, -- cgit v1.1