From patchwork Thu Mar 2 23:10:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Samuelsson X-Patchwork-Id: 63630 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp116078wrd; Thu, 2 Mar 2023 15:11:43 -0800 (PST) X-Google-Smtp-Source: AK7set/6Z3jGcHKQ40MeBskpAnOvgZeqtwctpa6eq9wqq9tjPSfeKXYzKX+fXyvozv5y00wOsJ8h X-Received: by 2002:a17:906:8a68:b0:88d:79df:7cfc with SMTP id hy8-20020a1709068a6800b0088d79df7cfcmr10781345ejc.62.1677798703271; Thu, 02 Mar 2023 15:11:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677798703; cv=none; d=google.com; s=arc-20160816; b=B7K9/21eFz6+WqTGwDsQxgy83yQKhFEbikFpRst514BaRrG1MQvbcLQJ8MMtj5K1EJ ZZJVsHDB74GopLJ994ngRxYL4hIYQnVeI17vmU9tNi2o9CtgQ9vxrVeRhY3CO3WBEcav /K/ckf8uE2cQYWiikYLizs9ThwBR/SQ7o8j/SLvzyhLP+pjQHsVq0KnQC041yij9bIzC xqfSyH7qFOxP5tvu2L1I9F1x0jXgQHAYRoAuOjAvDT2OIxc4savalLhGCxrNOU92MVbE umTvsnxIART2DBUc2X1ER4xv4dcep3c+KevjbVLp+v0vsycdkSYdGbk3wOSzJTFfbZuZ wfxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=9yJSe1pyn8lYugCbuR8uK7Cgt7CZamRXzlRe0ztd8gw=; b=RnK2D45wJ+xE/mm7iGHWHjfTUXjAcd43pm5j165tn0UZAfutpdesRXwno4rsxf0xAb RARrEjoDbo5T01Agy8KcDEerlBsPq6koW4Jm4uKopgbWanoXleeQuXsBdtXkt1YxbJ7P uVi+2yxVRtShjhN+EGoSFWPLz/9cbkG9cdIc7rbfZxb+upkfGwn7dAwJByw2ISsp8hm4 Y+veElclALJQm3CkM0v3pZYe/q2o7LVeYY8NKsco0E0Tj6pgqv2qWszafv7pIhDR9a4E HLYVESbWKjwvuK0tXvQdZRbpJerqB+87Xt0nBwpmiLDo2090zxAKPVTPGJb2AJNxViSp 5P5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=iVZrw1eZ; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id m13-20020aa7c48d000000b004b05eccef0bsi886295edq.148.2023.03.02.15.11.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Mar 2023 15:11:43 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=iVZrw1eZ; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 373A63858004 for ; Thu, 2 Mar 2023 23:11:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 373A63858004 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1677798699; bh=9yJSe1pyn8lYugCbuR8uK7Cgt7CZamRXzlRe0ztd8gw=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=iVZrw1eZYx484Qcll1UMJ3z+Osr2XGVIIsjYwMKkuSX+3ji5T7ix6jVcZfIRa339j hWJkf73tJ+bcc6twVaNeZbjOW1JvrJfGl+wYnwwDeVdSD8/6UH1mdFdf7sdAvAvLO4 kDXQV9yd/q9nekDD0NY8W1S5z+sAIXSzm74TA4m0= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from emagii.se (www.emagii.com [185.133.207.17]) by sourceware.org (Postfix) with ESMTPS id 3757D3858281 for ; Thu, 2 Mar 2023 23:11:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3757D3858281 Received: from valinor.ownit.se (84-55-68-216.customers.ownit.se [84.55.68.216]) by emagii.se (Postfix) with ESMTPSA id 003B7120212; Fri, 3 Mar 2023 00:11:21 +0100 (CET) Received-SPF: pass (emagii.beebytevps.io: connection is authenticated) To: binutils@sourceware.org Cc: nickc@redhat.com, Ulf Samuelsson Subject: [PATCH v10 01/11] DIGEST: LICENSING Date: Fri, 3 Mar 2023 00:10:41 +0100 Message-Id: <20230302231051.1928782-2-binutils@emagii.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230302231051.1928782-1-binutils@emagii.com> References: <20230302231051.1928782-1-binutils@emagii.com> MIME-Version: 1.0 X-PPP-Message-ID: <167779868583.1211951.17963428943853148453@localhost.localdomain> X-PPP-Vhost: emagii.com X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_ASCII_DIVIDERS, SPF_HELO_FAIL, SPF_PASS, 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.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Ulf Samuelsson via Binutils From: Ulf Samuelsson Reply-To: binutils@emagii.com Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759299453275851483?= X-GMAIL-MSGID: =?utf-8?q?1759299453275851483?= From: Ulf Samuelsson Signed-off-by: Ulf Samuelsson --- ld/COPYING.www.libcrc.org | 45 ++++++++++++++++++++++++++++++++++++ ld/COPYING.www.sunshine2k.de | 25 ++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100755 ld/COPYING.www.libcrc.org create mode 100644 ld/COPYING.www.sunshine2k.de diff --git a/ld/COPYING.www.libcrc.org b/ld/COPYING.www.libcrc.org new file mode 100755 index 00000000000..e8b7226ab89 --- /dev/null +++ b/ld/COPYING.www.libcrc.org @@ -0,0 +1,45 @@ +The GNU linker contains CRC routines that are used to implement the +DIGEST CRC32/64 commands in the output section. + +The CRC routines are extracted from LIBCRC available at +* https://www.libcrc.org/ +* https://github.com/lammertb/libcrc/tree/v2.0 + +The license file from libcrc is below. +================================================================================ +/* + * Library: libcrc + * File: src/crc64.c + * Author: Lammert Bies + * + * This file is licensed under the MIT License as stated below + * + * Copyright (c) 2016 Lammert Bies + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + * Description + * ----------- + * The source file src/crc64.c contains the routines which are needed to + * calculate a 64 bit CRC value of a sequence of bytes. + */ +================================================================================ +NOTE: The user could/(should) extract the CRC calculation routines + and add to their program. + The linker can add the table, but not the calculation routines. diff --git a/ld/COPYING.www.sunshine2k.de b/ld/COPYING.www.sunshine2k.de new file mode 100644 index 00000000000..636496fe047 --- /dev/null +++ b/ld/COPYING.www.sunshine2k.de @@ -0,0 +1,25 @@ +The ld.bfd linker contains code from the http://www.sunshine2k.de/ website +This code is released under the license below +================================================================================ +All content of this website is released under the MIT license as follows: + +Copyright (c) 2021 Bastian Molkenthin + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +================================================================================ From patchwork Thu Mar 2 23:10:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Samuelsson X-Patchwork-Id: 63632 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp116502wrd; Thu, 2 Mar 2023 15:13:02 -0800 (PST) X-Google-Smtp-Source: AK7set8LKoP8T0I6W4RzSu7PehaO4PcKgNBdUYpbnLr1+kTuPUr4DCZRhDHGqXJJ3wmBTTLjQDf1 X-Received: by 2002:aa7:d691:0:b0:4bf:c590:2a1b with SMTP id d17-20020aa7d691000000b004bfc5902a1bmr3830294edr.34.1677798782262; Thu, 02 Mar 2023 15:13:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677798782; cv=none; d=google.com; s=arc-20160816; b=POfmS2A9x/7k9gu2mftkLL85NWpc5AymU3+nZ24gBXVB9NXkByFAGzWvt5cnIk93Bj n8MB4FGa/9qUnNDrKlBzqRMDa36/SlUfnH2kdUUkR+FDeGVuOBZIWXZpJhk6icAH46db LMYszdn9qRKdYwPca2QRWUU7aq1cJKTwaKyHtDg9KQ4OExTOUevuJ8Li59CKz3IZlSNr OMTB+NEdJ7sTiztWsWiFIVCCLPV0Jd/e7JAMcj2bBqV6h+qYOnYOG7ydNWRrQmk97mPM FQg6vmvc+6HU2j6SFXvQnHA8bcpnQ5pZ9TZJr3JaflFWLBkFB7seV+EyjWNMeotWMK92 TxOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=Ss0MiKcaOpQQT0KcCDS1mr13m7cgxperjrCYTI/L6Yw=; b=gBCy4PlUqfmxXTKOiEwrtkFegvd8w17M1cN/5ikQynFVH+kLVpuuKAq0kq/7g8PTDo KOP6LSPMYtH4Sf/7ti/TbUI6+oD4DkPx7FtL+ixG7K1gjPnv4CdaBrX5wjAl8+fMSxR/ w2MI8cEuSvNJ/gNYJ1ocZ/IgPC8zG33d32qIEgA1C9WcHB2IZXhfLWhDWKBLRIHxnRss kyyhJlbgxTcNrZCx9Nj17yCuTr0qvN/Ln2qZkCV6Ojl0fdiP0c1/80AwB7mUpC3iiwsy sha5cpcVJCaO/+RKn3egYcLW8sfCtK6iZ86/+v1vOdgkeXo9O8f/LniMkw/NOEcuC80p qeHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=KaVKRPVt; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id a27-20020a1709063a5b00b008c0bf3018b4si465989ejf.901.2023.03.02.15.13.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Mar 2023 15:13:02 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=KaVKRPVt; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6525E3850408 for ; Thu, 2 Mar 2023 23:12:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6525E3850408 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1677798752; bh=Ss0MiKcaOpQQT0KcCDS1mr13m7cgxperjrCYTI/L6Yw=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=KaVKRPVtLIdfbCsJGpgX5GoSb0jWHyIazYPBf9h7o6WLvoMJraIrDRVHUShdTS/m8 xTIHOTZOQ98GStfKhv9aGFt0jgGDN0CzqRLMyGDdIpqAuFR3XEErzwf8OfzeM+2xmY KHV8GFxFM3h+H+99KA76S1AHiBhGZsjV9JCJOxy8= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from emagii.se (www.emagii.com [185.133.207.17]) by sourceware.org (Postfix) with ESMTPS id 6DD2538582A3 for ; Thu, 2 Mar 2023 23:11:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6DD2538582A3 Received: from valinor.ownit.se (84-55-68-216.customers.ownit.se [84.55.68.216]) by emagii.se (Postfix) with ESMTPSA id F11CC120216; Fri, 3 Mar 2023 00:11:29 +0100 (CET) Received-SPF: pass (emagii.beebytevps.io: connection is authenticated) To: binutils@sourceware.org Cc: nickc@redhat.com, Ulf Samuelsson Subject: [PATCH v10 02/11] DIGEST: NEWS Date: Fri, 3 Mar 2023 00:10:42 +0100 Message-Id: <20230302231051.1928782-3-binutils@emagii.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230302231051.1928782-1-binutils@emagii.com> References: <20230302231051.1928782-1-binutils@emagii.com> MIME-Version: 1.0 X-PPP-Message-ID: <167779869379.1212053.7911245946065565460@localhost.localdomain> X-PPP-Vhost: emagii.com X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_FAIL, SPF_PASS, 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.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Ulf Samuelsson via Binutils From: Ulf Samuelsson Reply-To: binutils@emagii.com Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759299536109826279?= X-GMAIL-MSGID: =?utf-8?q?1759299536109826279?= From: Ulf Samuelsson Signed-off-by: Ulf Samuelsson --- ld/NEWS | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 77 insertions(+), 4 deletions(-) diff --git a/ld/NEWS b/ld/NEWS index 4b91f2c3b0a..5bfe3ba87d3 100644 --- a/ld/NEWS +++ b/ld/NEWS @@ -1,5 +1,78 @@ -*- text -*- +* The linker script has a new command to insert a timestamp + TIMESTAMP + inserts the current time (seconds since Epoch) as a 64-bit value + +* The linker script syntax has new commands for debugging a linker script + DEBUG ON turns on debugging + DEBUG OFF turns off debugging + +* The linker script syntax has new commands for handling CRC-32/64 calculations + on the '.text' section + It uses code from https://www.libcrc.org/ + + DIGEST "