From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30471 invoked by alias); 15 Oct 2013 22:02:14 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 30462 invoked by uid 89); 15 Oct 2013 22:02:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-HELO: mail-wg0-f45.google.com Received: from mail-wg0-f45.google.com (HELO mail-wg0-f45.google.com) (74.125.82.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 15 Oct 2013 22:02:12 +0000 Received: by mail-wg0-f45.google.com with SMTP id z12so7433800wgg.12 for ; Tue, 15 Oct 2013 15:02:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:reply-to:date:message-id:subject :from:to:cc:content-type; bh=/fe/Ni+CJa57SidLGMTt6zcyvyGW0cZqSok0pq5urug=; b=IIcQ4Dn8g9C1Ah4wMrREuSn8vz7IbvQQA69GW9cu2UDJzsz6hj6iw6XcZwbHDEqxJm Ycnp5MPBN2HRf8UfLY/1nBNiGrMQMUurim3i6mWGgaO273tucX3KKCu+gLSrHS/hj9IJ LNzU42TnrWDuNlJtj08exdNIT60b3pGQKKkmG0bTxXINSMF8R0XJ0wY9sHkM+RoBlu5W zFl3UJe7MMDlLr7To+ArM0BWEqVgQeI7Tgymy0AaSMrbWfD6iJDV6VoL+7KlpoxeTaSq 84C83e7+M5RvSTflkioECNf2EyOi7cZqT5revumZ/AE+sJ1gi5G5JODYRqGq4pmsBDtU eqmg== X-Gm-Message-State: ALoCoQligDtfOd0JzjJFjSMuHMdxB3vbbvz7yvFisD3/RQN2Nvn0nbHL8g8EdKvURFmdGOq978Pv MIME-Version: 1.0 X-Received: by 10.194.77.167 with SMTP id t7mr36453850wjw.27.1381874529199; Tue, 15 Oct 2013 15:02:09 -0700 (PDT) Reply-To: cory@coryfields.com Received: by 10.194.143.115 with HTTP; Tue, 15 Oct 2013 15:02:09 -0700 (PDT) Date: Tue, 15 Oct 2013 22:02:00 -0000 Message-ID: Subject: Deterministic windres coff output From: Cory Fields To: binutils Cc: nick clifton Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2013-10/txt/msg00243.txt.bz2 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