From 240e87c2300c25b1cc8a78cccc2293874d89c67e Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 24 Oct 2002 00:22:27 +0000 Subject: * 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. --- elf/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'elf/Makefile') 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' $< | \ -- cgit v1.2.3