mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
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.
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user