aboutsummaryrefslogtreecommitdiff
path: root/dlfcn
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-11-05 17:46:24 +0000
committerUlrich Drepper <drepper@redhat.com>2005-11-05 17:46:24 +0000
commitce33ee7caabb2803294ad7aa8108b039cc00c748 (patch)
tree79ce106edebbac9ab8b168848c39b2a0e7c402c5 /dlfcn
parent* SUPPORTED (SUPPORTED-LOCALES): Fix typo in si_LK line. (diff)
downloadglibc-ce33ee7caabb2803294ad7aa8108b039cc00c748.tar.gz
glibc-ce33ee7caabb2803294ad7aa8108b039cc00c748.tar.bz2
glibc-ce33ee7caabb2803294ad7aa8108b039cc00c748.zip
* 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.c10
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
+};