bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/27725] using -p in objcopy discards microseconds in destin


From: cvs-commit at gcc dot gnu.org
Subject: [Bug binutils/27725] using -p in objcopy discards microseconds in destination timestamp
Date: Thu, 15 Apr 2021 08:42:28 +0000

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

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

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

commit 985e026451640c880e13827454aa31b7a636d1bc
Author: Alan Modra <amodra@gmail.com>
Date:   Thu Apr 15 00:36:42 2021 +0930

    PR27725, better objcopy -p times

    Nanosecond rather than second resolution.

            PR 27725
            * configure.ac: Check for sys/time.h and utimensat.  Use standard
            checks for mkstemp and mkdtemp.  Whitespace.  Check for nanosecond
            members of struct stat.
            * rename.c: Prefer sys/time.h for utimes over utime.h for utime.
            (STAT_TIMESPEC, STAT_TIMESPEC_NS): Define
            (get_stat_atime_ns, get_stat_mtime_ns): New inline functions.
            (get_stat_atime, get_stat_mtime): Likewise.
            (set_times): Choose first available of utimensat, utimes, utime.
            Use above inline functions to set timespec and timeval values.
            * configure: Regenerate.
            * config.in: Regenerate.
            * testsuite/binutils-all/objcopy.exp (objcopy_test): Add test of
            file timestamp when --preserve-dates is used.

-- 
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]