bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/28391] strip/objcopy --preserve-dates *.a: cannot set time


From: cvs-commit at gcc dot gnu.org
Subject: [Bug binutils/28391] strip/objcopy --preserve-dates *.a: cannot set time: Invalid argument
Date: Tue, 28 Sep 2021 13:00:19 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=28391

--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The binutils-2_37-branch branch has been updated by Alan Modra
<amodra@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6b02746a0e29b1007efd4feb137e2da3e681fc68

commit 6b02746a0e29b1007efd4feb137e2da3e681fc68
Author: Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
Date:   Tue Sep 28 20:11:26 2021 +0930

    PR28391, strip/objcopy --preserve-dates *.a: cannot set time

    After commit 985e0264516 copy_archive function began to pass invalid
    values to the utimensat(2) function when it tries to preserve
    timestamps in ar archives.  This happens because the bfd_stat_arch_elt
    implementation for ar archives fills only the st_mtim.tv_sec part of
    the st_mtim timespec structure, but leaves the st_mtim.tv_nsec part
    and the whole st_atim timespec untouched leaving them uninitialized

            PR 28391
            * ar.c (extract_file): Clear buf for preserve_dates.
            * objcopy.c (copy_archive): Likewise.

    (cherry picked from commit 0d62064867c74286360e821b75ef6799bedc4b34)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]