From: Cory Fields <cory@coryfields.com>
To: binutils <binutils@sourceware.org>
Cc: nick clifton <nickc@redhat.com>
Subject: Deterministic windres coff output
Date: Tue, 15 Oct 2013 22:02:00 -0000 [thread overview]
Message-ID: <CAApLimhpJ+yZuVrT6ecBdb=kTpDX7M6SNFpsQQjfPnum_ZjvLw@mail.gmail.com> (raw)
While in the process of adding an option to create deterministic
.exe/dll from ld, I noticed that timestamps are also inserted into
object files produced by windres.
So the output of windres (in coff mode) is never deterministic.
I began hooking up an option for reversing this, but the more I think
about it, the more it's beginning to seem like a bug rather than
intended behavior.
So before I go any further with adding an option, I'll ask:
Is it necessary to insert a real timestamp in this situation? If ld is
not deterministic then the resulting image won't be either, so the
end-result is (relatively) unaffected. Unless of course a
deterministic image is desired in the end (with forthcoming patches to
ld), in which case this behavior gets in the way.
I can send along a patch either way, but changing the behavior without
adding an option makes the most sense to me.
Please advise.
Regards,
Cory
next reply other threads:[~2013-10-15 22:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-15 22:02 Cory Fields [this message]
2013-11-14 14:19 ` nick clifton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAApLimhpJ+yZuVrT6ecBdb=kTpDX7M6SNFpsQQjfPnum_ZjvLw@mail.gmail.com' \
--to=cory@coryfields.com \
--cc=binutils@sourceware.org \
--cc=nickc@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).