Re: behavior of overwriting running executables?

Alan Modra (alan@spri.levels.unisa.edu.au)
Fri, 24 May 1996 09:04:35 +0930 (CST)


Julio Sanchez <jsanchez@esegi.es> said:
> Tom Bjorkholm <tomb@tomb.mydata.se> writes:
> >
> > I think ld should do an unlink before it trys to write to the output file.
>
> Seconded. That or something that achieves the same effect. There is

It's been done. From the binutils snapshot changelog:

Thu May 16 16:34:13 1996 Ian Lance Taylor <ian@cygnus.com>

* cache.c (bfd_open_file): Unlink the file before opening it for
write. From Marty Leisner <leisner@sdsp.mc.xerox.com>.