* Fri May 29 2003 Jakub Jelinek 2.3.2-44 - make __init_array_start etc. symbols in elf-init.oS hidden undefined diff -Nrup a/csu/elf-init.c b/csu/elf-init.c --- a/csu/elf-init.c 2012-06-05 07:42:49.000000000 -0600 +++ b/csu/elf-init.c 2012-06-07 12:15:21.570319597 -0600 @@ -62,6 +62,23 @@ extern void _fini (void); programs, this module will come from libc_nonshared.a and differs from the libc.a module in that it doesn't call the preinit array. */ +#if defined HAVE_VISIBILITY_ATTRIBUTE \ + && (defined SHARED || defined LIBC_NONSHARED) +# define hidden_undef_2(x) #x +# define hidden_undef_1(x) hidden_undef_2 (x) +# define hidden_undef(x) \ + __asm (hidden_undef_1 (ASM_GLOBAL_DIRECTIVE) " " #x); \ + __asm (".hidden " #x); +#else +# define hidden_undef(x) +#endif + +hidden_undef (__preinit_array_start) +hidden_undef (__preinit_array_end) +hidden_undef (__init_array_start) +hidden_undef (__init_array_end) +hidden_undef (__fini_array_start) +hidden_undef (__fini_array_end) void __libc_csu_init (int argc, char **argv, char **envp)