From patchwork Mon Sep 23 13:22:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Clifton X-Patchwork-Id: 97858 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C87893858D39 for ; Mon, 23 Sep 2024 13:23:16 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id EE3D83858D20 for ; Mon, 23 Sep 2024 13:22:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EE3D83858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org EE3D83858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1727097767; cv=none; b=cnM1BM0Vov2R39xL1dLouC0z02fDdeshVhlt4g2AWrddHNBomN8SnDbICO7VVQF+nVyur8zgBNFJGm2YlSf+7qMCziTGTS9FuAVVG+DSjJ9evIhuVEMPDZ3LHYl10ZWsyxKZqNNyu/pWoDaSkhyQk/AL5Srd6JhX4dYKKZeQIgs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1727097767; c=relaxed/simple; bh=Op69lD0Ea+18E2CPKCrkzjYxNDGF8dRHKkTs6RsayqA=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=ffKAQK863QieLSEouu9D15yxaxGki2XdlUTOovZiJYhneoKkUzbrVsQmpagIY0ZdV58wWjT/U+S5Y8jOZo0B/D3GlLu/WwnA+k/n0UIMlU3uHuRy7xB4wLfTxl1YweghxMaegRGxsW7+anxHIQT4q1e9AgZeE4HOOwisP7aOWiQ= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1727097765; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=0sxmS+z3/h10gVXF9YR1JmOkNRzuzJEcq0VXpJqrVB0=; b=WrkUZjtmdqIu3QvdgccBgZtvRVK5QExOXtmu5CR3p/7eDwxSRT8tQdXlx+byyaVx+O5hN6 Bgd9e1ovRQgZ+lbzzWOxflO8JZ39h0S1+mwdA4oscJfOtpBNUGA5WHyYvajzUpcaYCCau1 33qdFKJvDm064E49oA3Hq/Dg6QF3oAM= Received: from mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-147-XFjO48b9NiixMEeccrH2MA-1; Mon, 23 Sep 2024 09:22:44 -0400 X-MC-Unique: XFjO48b9NiixMEeccrH2MA-1 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (unknown [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 7DAEE18BC6E6 for ; Mon, 23 Sep 2024 13:22:43 +0000 (UTC) Received: from prancer.redhat.com (unknown [10.42.28.76]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id D2C6D19560A3 for ; Mon, 23 Sep 2024 13:22:42 +0000 (UTC) From: Nick Clifton To: binutils@sourceware.org Subject: Commit: LD: Document use of SOURCE_DATE_EPOCH in Environment section Date: Mon, 23 Sep 2024 14:22:40 +0100 Message-ID: <87r09ald27.fsf@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-9.8 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: binutils-bounces~patchwork=sourceware.org@sourceware.org Hi Guys, I am applying the patch below to update the linker's documentation, adding an entry to the Environment Variables section mentioning the potential use of the SOURCE_DATE_EPOCH variable. (Something that I should have done when I added the code to use SOURCE_DATE_EPOCH in the first place, but I forgot). Cheers Nick diff --git a/ld/ld.texi b/ld/ld.texi index 89e3913317a..24dcf9db919 100644 --- a/ld/ld.texi +++ b/ld/ld.texi @@ -4048,6 +4048,13 @@ a similar fashion by the @code{gcc} linker wrapper program. The default may be overridden by the @samp{--demangle} and @samp{--no-demangle} options. +@kindex SOURCE_DATE_EPOCH +@cindex timestamps +If the PE/COFF specific @option{--insert-timestamp} is active and the +@env{SOURCE_DATE_EPOCH} environment variable is defined, then the +timestamp value in this variable will be inserted into the COFF header +instead of the current time. + @c man end @end ifset