Make objcopy -p work when an output file is specified
authorAlan Modra <amodra@gmail.com>
Wed, 14 Apr 2021 16:03:13 +0000 (01:33 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 15 Apr 2021 04:46:55 +0000 (14:16 +0930)
commitd0ecdcddc363ad7f05fc50cf1eee4028fa7f8964
tree2c075eb545457086b9749fbdeae5d28b9b62cda0
parentddfe525f2875e76e0c32ff348fc0d3d6aa5fb4a3
Make objcopy -p work when an output file is specified

More fallout from the PR27456 fixes.

PR 27456
* rename.c (smart_rename): When TO and FROM are equal, just set
file timestamp.
* objcopy.c (strip_main, copy_main): Always call smart_rename.
binutils/ChangeLog
binutils/objcopy.c
binutils/rename.c