aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-02-14 21:25:50 +0000
committerUlrich Drepper <drepper@redhat.com>2005-02-14 21:25:50 +0000
commit43c59a705b67a3078cb1d8fd8ff6ce00ea9bdeee (patch)
tree86f2fd362b0471498253d720e5c14a5a6d69daf5 /elf
parente38c954b3bebd37f7519202d918cf0f1edbdd182 (diff)
downloadglibc-43c59a705b67a3078cb1d8fd8ff6ce00ea9bdeee.tar
glibc-43c59a705b67a3078cb1d8fd8ff6ce00ea9bdeee.tar.gz
glibc-43c59a705b67a3078cb1d8fd8ff6ce00ea9bdeee.tar.bz2
glibc-43c59a705b67a3078cb1d8fd8ff6ce00ea9bdeee.zip
* csu/elf-init.c (__libc_csu_fini): Enable if LIBC_NONSHARED
isn't defined. * sysdeps/generic/libc-start.c (LIBC_START_MAIN): Call fini if SHARED isn't defined. * elf/Makefile (tests-static): Add tst-array1-static. ($(objpfx)tst-array1-static.out): New target. * elf/tst-array1-static.c: New file.
Diffstat (limited to 'elf')
-rw-r--r--elf/Makefile7
-rw-r--r--elf/tst-array1-static.c1
2 files changed, 8 insertions, 0 deletions
diff --git a/elf/Makefile b/elf/Makefile
index 47e6ea4d58..6c34d8ab44 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -138,6 +138,9 @@ tests += tst-array1 tst-array2 tst-array3 tst-array4
endif
ifeq (yes,$(build-static))
tests-static = tst-tls1-static tst-tls2-static
+ifeq (yes,$(have-initfini-array))
+tests-static += tst-array1-static
+endif
ifeq (yesyesyes,$(build-static)$(build-shared)$(elf))
tests-static += tst-tls9-static
tst-tls9-static-ENV = \
@@ -701,6 +704,10 @@ $(objpfx)tst-array1.out: $(objpfx)tst-array1
$(objpfx)tst-array1 > $@
cmp $@ tst-array1.exp > /dev/null
+$(objpfx)tst-array1-static.out: $(objpfx)tst-array1-static
+ $(objpfx)tst-array1-static > $@
+ cmp $@ tst-array1.exp > /dev/null
+
$(objpfx)tst-array2: $(objpfx)tst-array2dep.so
$(objpfx)tst-array2.out: $(objpfx)tst-array2
$(elf-objpfx)$(rtld-installed-name) \
diff --git a/elf/tst-array1-static.c b/elf/tst-array1-static.c
new file mode 100644
index 0000000000..21539a4212
--- /dev/null
+++ b/elf/tst-array1-static.c
@@ -0,0 +1 @@
+#include "tst-array1.c"