about summary refs log tree commit diff
path: root/elf/Makefile
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-10-24 00:22:27 +0000
committerRoland McGrath <roland@gnu.org>2002-10-24 00:22:27 +0000
commit240e87c2300c25b1cc8a78cccc2293874d89c67e (patch)
tree9ae48ca9bb0d09bea6c218950c86e000378d1b88 /elf/Makefile
parent3efdabe7624ae0a574d3919cfe9ffcb5bca21692 (diff)
downloadglibc-240e87c2300c25b1cc8a78cccc2293874d89c67e.tar.gz
glibc-240e87c2300c25b1cc8a78cccc2293874d89c67e.tar.xz
glibc-240e87c2300c25b1cc8a78cccc2293874d89c67e.zip
* posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
	(free_mem): New function.
	* posix/Makefile (tests): Add bug-regex14.  Add bug-regex14-mem
	if not cross compiling.
	(generated): Add bug-regex14-mem and bug-regex14.mtrace.
	(bug-regex14-ENV): Set.
	(bug-regex14-mem): New target.
	* posix/bug-regex14.c: New file.

	* elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
	target, so we don't touch it when the link fails.
Diffstat (limited to 'elf/Makefile')
-rw-r--r--elf/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/elf/Makefile b/elf/Makefile
index f490b2587d..015352275c 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -188,8 +188,10 @@ $(objpfx)dl-allobjs.os: $(all-rtld-routines:%=$(objpfx)%.os)
 # for us.  Then we do the real link using rtld-libc.a instead of libc_pic.a.
 
 $(objpfx)librtld.map: $(objpfx)dl-allobjs.os $(common-objpfx)libc_pic.a
-	$(reloc-link) -o $@.o '-Wl,-(' $^ -lgcc '-Wl,-)' -Wl,-Map,$@
+	@-rm -f $@T
+	$(reloc-link) -o $@.o '-Wl,-(' $^ -lgcc '-Wl,-)' -Wl,-Map,$@T
 	rm -f $@.o
+	mv -f $@T $@
 
 $(objpfx)librtld.mk: $(objpfx)librtld.map Makefile
 	sed -n 's@^$(common-objpfx)\([^(]*\)(\(.*.os\))$$@\1 \2@p' $< | \