aboutsummaryrefslogtreecommitdiff
path: root/binutils/arsup.c
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/arsup.c
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/arsup.c')
0 files changed, 0 insertions, 0 deletions