* hppa.h (pa_opcodes): Add popbts, new forms of bb, havg,
[deliverable/binutils-gdb.git] / bfd / cache.c
index f965bdce8eb45f64bd4a198235990f1272cf3e14..b28de4bc4b96413baff41de25912342713016d4c 100644 (file)
@@ -1,5 +1,5 @@
 /* BFD library -- caching of file descriptors.
-   Copyright 1990, 1991, 1992, 1994 Free Software Foundation, Inc.
+   Copyright 1990, 91, 92, 93, 94, 95, 1996 Free Software Foundation, Inc.
    Hacked by Steve Chamberlain of Cygnus Support (steve@cygnus.com).
 
 This file is part of BFD, the Binary File Descriptor library.
@@ -285,7 +285,10 @@ bfd_open_file (abfd)
        }
       else
        {
-         /*open for creat */
+         /* Create the file.  Unlink it first, for the convenience of
+             operating systems which worry about overwriting running
+             binaries.  */
+         unlink (abfd->filename);
          abfd->iostream = (PTR) fopen (abfd->filename, FOPEN_WB);
          abfd->opened_once = true;
        }
This page took 0.022617 seconds and 4 git commands to generate.