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.