This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Add a testcase for .fini_array in static binary


.fini_array no longer works in static binary. This patch adds a
testcase for it.


H.J.
----
2005-02-09  H.J. Lu  <hongjiu.lu@intel.com>

	* elf/Makefile (tests-static): Add tst-array1-static.
	($(objpfx)tst-array1-static.out): New target.

	* elf/tst-array1-static.c: New file.

--- elf/Makefile.static	2005-01-24 15:30:36.000000000 -0800
+++ elf/Makefile	2005-02-09 14:06:19.622322427 -0800
@@ -138,6 +138,9 @@ tests += tst-array1 tst-array2 tst-array
 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-ar
 	  $(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) \
--- elf/tst-array1-static.c.static	2005-02-09 14:05:25.977226808 -0800
+++ elf/tst-array1-static.c	2005-02-09 14:05:20.758898432 -0800
@@ -0,0 +1 @@
+#include "tst-array1.c"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]