bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/20634] mingw: ld --no-insert-timestamp does not insert a zero va


From: Elver_Galarga at cool dot fr.nf
Subject: [Bug ld/20634] mingw: ld --no-insert-timestamp does not insert a zero value for the timestamp
Date: Tue, 27 Sep 2016 08:04:16 +0000

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

--- Comment #2 from E. G. <Elver_Galarga at cool dot fr.nf> ---
(In reply to Nick Clifton from comment #1)
> Created attachment 9521 [details]
> Proposed patch
> 
> Hi E.G.
> 
>   Without a way to reproduce this problem it might be very hard to fix.  But
> first, please have a try with the uploaded patch, which represents a guess
> at the underlying problem and a simple fix, should the guess be correct.
> 
> Cheers
>   Nick

Hi Nick

I have rebuilt binutils-2.25 for i686-w64-mingw32 target with your proposed
patch and ld --no-insert-timestamp now works as expected. Thanks a lot!

Tested with openssl-1.0.2j sources.

perl ./Configure mingw shared -Wl,--no-insert-timestamp
make

# With unpatched binutils:
objdump -x openssl-1.0.2j/apps/libeay32.dll | grep -E "^Time/Date[^ s]"
Time/Date               Sat Aug 07 14:08:16 1971
objdump -x openssl-1.0.2j/apps/openssl.exe | grep -E "^Time/Date[^ s]"
Time/Date               Tue Jul 06 04:12:00 1971
objdump -x openssl-1.0.2j/apps/ssleay32.dll | grep -E "^Time/Date[^ s]"
Time/Date               Wed Dec 31 20:00:00 1969

# With patched binutils:
objdump -x openssl-1.0.2j/apps/libeay32.dll | grep -E "^Time/Date[^ s]"
Time/Date               Wed Dec 31 20:00:00 1969
objdump -x openssl-1.0.2j/apps/openssl.exe | grep -E "^Time/Date[^ s]"
Time/Date               Wed Dec 31 20:00:00 1969
objdump -x openssl-1.0.2j/apps/ssleay32.dll | grep -E "^Time/Date[^ s]"
Time/Date               Wed Dec 31 20:00:00 1969

In the first case (unpatched binutils), only "ssleay32.dll" got a zero value as
timestamp (timezone here is UTC-4), the other two binaries got random values
instead. In the second case (patched binutils), all binaries got a zero value
as timestamp.

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