diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-11-05 17:46:24 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-11-05 17:46:24 +0000 |
commit | ce33ee7caabb2803294ad7aa8108b039cc00c748 (patch) | |
tree | 79ce106edebbac9ab8b168848c39b2a0e7c402c5 /dlfcn | |
parent | f06d38b39fcf1ccaf52bc763498676321d36c81f (diff) | |
download | glibc-ce33ee7caabb2803294ad7aa8108b039cc00c748.tar.gz |
* configure.in: If init_array/fini_array support is not available,
bail out.
* config.h.in: Remove trace of optional init_array/fini_array support.
* config.make.in: Likewise.
* csu/elf-init.c: Likewise.
* dlfcn/dlfcn.c: Likewise.
* elf/soinit.c: Likewise.
* sysdeps/ia64/elf/initfinit.c: Likewise.
Diffstat (limited to 'dlfcn')
-rw-r--r-- | dlfcn/dlfcn.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dlfcn/dlfcn.c b/dlfcn/dlfcn.c index 8047150763..1ee225ba47 100644 --- a/dlfcn/dlfcn.c +++ b/dlfcn/dlfcn.c @@ -23,7 +23,7 @@ int __dlfcn_argc attribute_hidden; char **__dlfcn_argv attribute_hidden; -#ifdef HAVE_INITFINI_ARRAY + static void init (int argc, char *argv[]) { @@ -33,7 +33,7 @@ init (int argc, char *argv[]) static void (*const init_array []) (int argc, char *argv[]) __attribute__ ((section (".init_array"), aligned (sizeof (void *)))) - __attribute_used__ = { init }; -#else -# error "Need linker with .init_array support." -#endif + __attribute_used__ = +{ + init +}; |