When the output file is the same as the input file ...

John Darrington john@darrington.wattle.id.au
Thu Apr 5 08:13:00 GMT 2018


Occasionally I thoughtlessly type:

 as foo.s -o foo.s

which dutifully assembles my source file and overwrites it with the object code :(

Would you accept a patch which produces an error if the input and outfile files
are the same?

J'

-- 
Avoid eavesdropping.  Send strong encrypted email.
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://sourceware.org/pipermail/binutils/attachments/20180405/1da1a3c7/attachment.sig>


More information about the Binutils mailing list