When the output file is the same as the input file ...
Nick Clifton
nickc@redhat.com
Thu Apr 5 13:40:00 GMT 2018
More information about the Binutils mailing list
Thu Apr 5 13:40:00 GMT 2018
- Previous message (by thread): When the output file is the same as the input file ...
- Next message (by thread): When the output file is the same as the input file ...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi John, > 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? Yes. :-) (Provided that the input and output are real files, of course). I have also often wonder why the default output name is a.out, which does not make a lot of sense to me. Defaulting to choosing an output name based upon the input name would make more sense. (Although this behaviour would have to be controlled by a configure time option, so that backwards compatibility can be maintained). Just mentioning this in case you feel like solving both problems at the same time... :-) Cheers Nick -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: <https://sourceware.org/pipermail/binutils/attachments/20180405/4d9b113e/attachment.sig>
- Previous message (by thread): When the output file is the same as the input file ...
- Next message (by thread): When the output file is the same as the input file ...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list