diff options
author | Siddhesh Poyarekar <siddhesh@gotplt.org> | 2020-12-07 20:48:28 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@gotplt.org> | 2020-12-07 20:48:28 +0530 |
commit | 1a1c3b4cc17687091cff5a368bd6f13742bcfdf8 (patch) | |
tree | bba73125094ca7214e3c8613d89b943310891894 /binutils/bucomm.h | |
parent | 365f5fb6d0f0da83817431a275e99e6f6babbe04 (diff) | |
download | gdb-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/bucomm.h')
0 files changed, 0 insertions, 0 deletions