From patchwork Wed Mar 1 14:47:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Samuelsson X-Patchwork-Id: 62932 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3671289wrd; Wed, 1 Mar 2023 06:48:33 -0800 (PST) X-Google-Smtp-Source: AK7set9apRqB2If2fgJ8osKTvvfyzqorRXh66v+GqvfZJ8zyVAMpehkAgnqa01GBO4qea3sCCj7k X-Received: by 2002:a17:907:982:b0:8b1:7de6:e292 with SMTP id bf2-20020a170907098200b008b17de6e292mr8813210ejc.9.1677682113215; Wed, 01 Mar 2023 06:48:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677682113; cv=none; d=google.com; s=arc-20160816; b=Ok2MUa+Zr75+mt9anVK36zYcewlFshiM5dCY0/FIwUM7smvVUdXHwWbKUd9E2Jefns yDgksih7td18wMFWqT3F4KDZ3957/oAnckoswpx5W3O4DF0xZnru/8cZjDDOR3XKHgXv 2Gep97SzJIorgO+R6DkuYpL9ZYPdEu0wv4uuKqCIWu34Vs0j48BthKMTnj7h7X3sL7Sv /693BNUnOFLt5nc0S5xLMS4ma2uZfsxgWowKnQb+wnaGihMbqV69752+McavNayfqJOw CHN4y7eYP7Myg0iigSSLe2BC3l/07kPRx8wi7+Ut7anWHW+VzPAvS2uXFia3TNy4Pxyl VXBg== 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=HIGp7Jvm6WigRX7ajfQDCd4O4/3TOOqz/B4ftI3HJS8=; b=RIaLc9fkE4kv1bEeLyHkRRLO6u5KHKSZ9kS5g6AybF4XL8LlQ/blkspwYsIPHOMyd8 +L7d7xCAQBnrNXoS2CSP+ZXXP5rpuT2lNWYut/lrshFM2HZ8SnH6qKqbInnPJ2X8RXAm pFET42tOwomS5Yv33j7db+3eJEP/3PkoiXZOK06f40NNU5mw2TXH+0z+OcwQtMULRXQu TsM/N4JH7SXvuGBxAPZtsoH4HG5KZ9UcWS56AY4rXZ0Rfdv4bhgkUVUAZkDN+GWQTvr/ 64vOSEBDlkXjSBV6e0AfKO2QG4IsQP1+qnUu2VLsmHrqVTQVF+ptFE+3VLm66XeB0GaX om1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=r482VrnZ; 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 (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id ne34-20020a1709077ba200b008c33d2d5452si17045205ejc.527.2023.03.01.06.48.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Mar 2023 06:48:33 -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=r482VrnZ; 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 306D03858C5E for ; Wed, 1 Mar 2023 14:48:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 306D03858C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1677682108; bh=HIGp7Jvm6WigRX7ajfQDCd4O4/3TOOqz/B4ftI3HJS8=; 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=r482VrnZnHwZtsQOp7NPAnuQIA6oOS1ie5mCen9SujxVNISe8D/bvedxqJDLuGTBN VHgfk8rqt+mRUi4Krat1ltMD5GlfxWJ0CF4qE7DM2RGb9GZSarIJh95SjMJHgu5KAE EbAo5/k+ELpOZcFknsV7Mpt8FXeqX/F5RzwiRv8M= 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 5CEAE385843E for ; Wed, 1 Mar 2023 14:48:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5CEAE385843E Received: from valinor.ownit.se (84-55-68-216.customers.ownit.se [84.55.68.216]) by emagii.se (Postfix) with ESMTPSA id DD69212020C; Wed, 1 Mar 2023 15:48:13 +0100 (CET) Received-SPF: pass (emagii.beebytevps.io: connection is authenticated) To: binutils@sourceware.org Cc: nickc@redhat.com, Ulf Samuelsson Subject: [PATCH v6 01/11] DIGEST: LICENSING Date: Wed, 1 Mar 2023 15:47:46 +0100 Message-Id: <20230301144756.1847278-2-binutils@emagii.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230301144756.1847278-1-binutils@emagii.com> References: <20230301144756.1847278-1-binutils@emagii.com> MIME-Version: 1.0 X-PPP-Message-ID: <167768209758.64253.15957888687516357126@localhost.localdomain> X-PPP-Vhost: emagii.com X-Spam-Status: No, score=-12.0 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?1759177199685481969?= X-GMAIL-MSGID: =?utf-8?q?1759177199685481969?= From: Ulf Samuelsson Signed-off-by: Ulf Samuelsson --- COPYING-MIT.SUNSHINE | 21 +++++++++++++++++++++ COPYING.LIBCRC | 45 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 COPYING-MIT.SUNSHINE create mode 100755 COPYING.LIBCRC diff --git a/COPYING-MIT.SUNSHINE b/COPYING-MIT.SUNSHINE new file mode 100644 index 00000000000..9e347bebab4 --- /dev/null +++ b/COPYING-MIT.SUNSHINE @@ -0,0 +1,21 @@ +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. diff --git a/COPYING.LIBCRC b/COPYING.LIBCRC new file mode 100755 index 00000000000..e8b7226ab89 --- /dev/null +++ b/COPYING.LIBCRC @@ -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. From patchwork Wed Mar 1 14:47:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Samuelsson X-Patchwork-Id: 62934 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3672158wrd; Wed, 1 Mar 2023 06:50:16 -0800 (PST) X-Google-Smtp-Source: AK7set9mo/bj1byX1TXL2fM3tAISGJOwY2czjwi1nTlKU5PtQDkS6fVHtUcY4nA+vjYmUKrT25A4 X-Received: by 2002:a17:907:72cf:b0:8e1:d996:dca2 with SMTP id du15-20020a17090772cf00b008e1d996dca2mr8535823ejc.64.1677682216027; Wed, 01 Mar 2023 06:50:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677682216; cv=none; d=google.com; s=arc-20160816; b=wSkvSY3txsCRyOaLDNO48d8rV43vakhHR08fu/CH6UfPwt1n6QVU9UAdUHiFBW5pB0 E3g2H9/4wUzC1mALJSRXw75Hhb33CqzIU7Zh5XUUaI4JfhwMubFjW0gVNz1bspgKUprs zhM51szCYpCkQOclIQ9aOwHRGmpBAkVRMGEebTy8G41q13rMVsIJ4lVIo573C7yWTCGZ WgHuE23Zi61KHnSQjjw1PCw4G2yESmd0+yk9H7XvQP03K4Ub84CFPnykGe64iC3/U260 utn9Xep5IaBJ+gyaxLIUrM+qPfOY+BoipdCPtvF9GJideq5SWMpSm6a+PWd/2nQSDqdT /C0Q== 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=g/u8gNmhUaH/VWqFa7Vr0Eip17lgUvwHxQsjs2p1/6s=; b=vIA+F3Ma6ep9A3CbUWbsSdiakAGrwdanhG+ge7aM/ZsfbGBL33lB5GaAyjpM46cs84 PPTB01SM5La6jW3ZZ9gULks1k03Ytqftv1X64wqLASHj3QpUF4ujZcgqko9NC5YPAPwX vnLlbhAAXaC7E//ekPwi54ceDm8Ml3YFWkh4UKaUsdO25atS4ex9FSnK27U/ShxXF3zV 6S02u/ShUUQDMJYDinxcrfssgxfly5FqttQCn/AW29jsQEXkYhZTbymaN3Ami3VrXYRJ 9DsYY1vN16pfETSuh5v5rUqwQdz0cBiCSGxWfcxyDze0eFc4mvzk7Oa9uTHms1h/Wla/ mAwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=P8QQPhig; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c 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 (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id i13-20020aa7dd0d000000b004ad06322427si3671669edv.9.2023.03.01.06.50.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Mar 2023 06:50:16 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=P8QQPhig; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c 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 56C5D384FB51 for ; Wed, 1 Mar 2023 14:49:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 56C5D384FB51 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1677682174; bh=g/u8gNmhUaH/VWqFa7Vr0Eip17lgUvwHxQsjs2p1/6s=; 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=P8QQPhigMlyFLFwzQz1mdrab6BoIHBW6/lEdobYW7JHLTd/kwJC6YAe5rcdk3nhDh FQiAxmmZ46K8vJPFFjump4j9JoMC2rsp6rNzY2soIEm73TpVBIb0OVi7ghhHB8JtOE O4gkgpUtQss820bAmTtEcjKfFg68qa9aPe5ugYtM= 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 5DAF83858430 for ; Wed, 1 Mar 2023 14:48:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5DAF83858430 Received: from valinor.ownit.se (84-55-68-216.customers.ownit.se [84.55.68.216]) by emagii.se (Postfix) with ESMTPSA id C14EE12056D; Wed, 1 Mar 2023 15:48:19 +0100 (CET) Received-SPF: pass (emagii.beebytevps.io: connection is authenticated) To: binutils@sourceware.org Cc: nickc@redhat.com, Ulf Samuelsson Subject: [PATCH v6 02/11] DIGEST: NEWS Date: Wed, 1 Mar 2023 15:47:47 +0100 Message-Id: <20230301144756.1847278-3-binutils@emagii.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230301144756.1847278-1-binutils@emagii.com> References: <20230301144756.1847278-1-binutils@emagii.com> MIME-Version: 1.0 X-PPP-Message-ID: <167768210411.64360.17149272117598313441@localhost.localdomain> X-PPP-Vhost: emagii.com X-Spam-Status: No, score=-12.4 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?1759177307720659896?= X-GMAIL-MSGID: =?utf-8?q?1759177307720659896?= From: Ulf Samuelsson Signed-off-by: Ulf Samuelsson --- ld/NEWS | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 76 insertions(+), 4 deletions(-) diff --git a/ld/NEWS b/ld/NEWS index 4b91f2c3b0a..e245d3da4dc 100644 --- a/ld/NEWS +++ b/ld/NEWS @@ -1,5 +1,77 @@ -*- 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 "