diff options
author | Jan Beulich <jbeulich@novell.com> | 2005-03-02 09:03:58 +0000 |
---|---|---|
committer | Jan Beulich <jbeulich@novell.com> | 2005-03-02 09:03:58 +0000 |
commit | bb14f524002c5b0e93c17e929109f4c735f11f5b (patch) | |
tree | b7770e62a4202287cefd5d0409b400908b88d981 /ld | |
parent | c4a530c52970c9fdd3a6c0315503a058e132f073 (diff) | |
download | gdb-bb14f524002c5b0e93c17e929109f4c735f11f5b.zip gdb-bb14f524002c5b0e93c17e929109f4c735f11f5b.tar.gz gdb-bb14f524002c5b0e93c17e929109f4c735f11f5b.tar.bz2 |
bfd/
2005-03-02 Jan Beulich <jbeulich@novell.com>
* Makefile.am: Add dependency of cache.o on libiberty.h.
* cache.c: Include libiberty.h.
(bfd_open_file): Use unlink_if_ordinary instead of unlink.
binutils/
2005-03-02 Jan Beulich <jbeulich@novell.com>
* ar.c (remove_output): Use unlink_if_ordinary instead of unlink.
* objcopy.c (copy_file): Likewise.
(strip_main): Likewise.
gas/
2005-03-02 Jan Beulich <jbeulich@novell.com>
* as.c (main): Use unlink_if_ordinary instead of unlink.
* messages.c (as_fatal): Likewise.
ld/
2005-03-02 Jan Beulich <jbeulich@novell.com>
* ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
* pe-dll.c (pe_dll_generate_implib): Likewise.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/ldmain.c | 2 | ||||
-rw-r--r-- | ld/pe-dll.c | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 89ace4a..37af7e8 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2005-03-02 Jan Beulich <jbeulich@novell.com> + + * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink. + * pe-dll.c (pe_dll_generate_implib): Likewise. + 2005-02-24 Ben Elliston <bje@au.ibm.com> * ldfile.c: Remove GNU960 conditional code. diff --git a/ld/ldmain.c b/ld/ldmain.c index 4a767bc..713c590 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c @@ -173,7 +173,7 @@ remove_output (void) if (output_bfd) bfd_cache_close (output_bfd); if (delete_output_file_on_failure) - unlink (output_filename); + unlink_if_ordinary (output_filename); } } diff --git a/ld/pe-dll.c b/ld/pe-dll.c index 3bbc5b6..81834ec 100644 --- a/ld/pe-dll.c +++ b/ld/pe-dll.c @@ -2225,7 +2225,7 @@ pe_dll_generate_implib (def_file *def, const char *impfilename) if (!ISALNUM (dll_symname[i])) dll_symname[i] = '_'; - unlink (impfilename); + unlink_if_ordinary (impfilename); outarch = bfd_openw (impfilename, 0); |