aboutsummaryrefslogtreecommitdiff
path: root/binutils/ChangeLog
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@gotplt.org>2020-12-07 20:48:28 +0530
committerSiddhesh Poyarekar <siddhesh@gotplt.org>2020-12-07 20:48:28 +0530
commit1a1c3b4cc17687091cff5a368bd6f13742bcfdf8 (patch)
treebba73125094ca7214e3c8613d89b943310891894 /binutils/ChangeLog
parent365f5fb6d0f0da83817431a275e99e6f6babbe04 (diff)
downloadgdb-1a1c3b4cc17687091cff5a368bd6f13742bcfdf8.zip
gdb-1a1c3b4cc17687091cff5a368bd6f13742bcfdf8.tar.gz
gdb-1a1c3b4cc17687091cff5a368bd6f13742bcfdf8.tar.bz2
objcopy: Get input file stat after BFD open
Get file state from the descriptor opened by copy_file for the input BFD. This ensures continuity in the view of the input file through the descriptor. At the moment it is only to preserve timestamps recorded at the point that we opened the file for input but in the next patch this state will also be used to preserve ownership and permissions wherever applicable. binutils/ * objcopy.c (copy_file): New argument IN_STAT. Return stat of ibfd through it. (strip_main): Remove redundant stat calls. adjust copy_file calls. (copy_main): Likewise.
Diffstat (limited to 'binutils/ChangeLog')
-rw-r--r--binutils/ChangeLog9
1 files changed, 9 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index e0794e4..a817cd8 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,6 +1,15 @@
2020-12-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
PR 26945
+ * objcopy.c (copy_file): New argument IN_STAT. Return stat of
+ ibfd through it.
+ (strip_main): Remove redundant stat calls. adjust copy_file
+ calls.
+ (copy_main): Likewise.
+
+2020-12-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
+
+ PR 26945
* bucomm.c (make_tempname): Add argument to return file
descriptor.
* bucomm.h (make_tempname): Likewise.