bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/30702] objcopy and strip invalidate the effect of ld optio


From: nickc at redhat dot com
Subject: [Bug binutils/30702] objcopy and strip invalidate the effect of ld option --no-insert-timestamp
Date: Mon, 14 Aug 2023 14:51:30 +0000

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

Nick Clifton <nickc at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |NOTABUG

--- Comment #4 from Nick Clifton <nickc at redhat dot com> ---
(In reply to Christian Franke from comment #0)
Hi Christian,

> The ld option '--no-insert-timestamp' is useless if objcopy or strip is used
> afterwards. 

Actually no, it is just that you need to use the -p/--preserve-dates command
line option in order to ensure that the timestamps are not altered:

> $ x86_64-w64-mingw32-strip nostamp.exe
> 
> $ x86_64-w64-mingw32-objdump -p nostamp.exe | grep Time/Date
> Time/Date               Mon Jul 31 09:02:52 2023

Replace the first command with:

  $ x86_64-w64-mingw32-strip -p nostamp.exe
  $ x86_64-w64-mingw32-objdump -p nostamp.exe | grep Time/Date
  Time/Date             Thu Jan  1 01:00:00 1970

Cheers
  Nick

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