From patchwork Wed Mar 1 17:43:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Samuelsson X-Patchwork-Id: 62999 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3771504wrd; Wed, 1 Mar 2023 09:43:59 -0800 (PST) X-Google-Smtp-Source: AK7set9gExkv81D98CKKAM+PdZT2fOZg6czWgwKzKBpf9vMho7+55RHDHH5KhZQOuA+SaajyNcp1 X-Received: by 2002:a17:906:b2d5:b0:8af:4314:24a6 with SMTP id cf21-20020a170906b2d500b008af431424a6mr7334415ejb.31.1677692639004; Wed, 01 Mar 2023 09:43:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677692638; cv=none; d=google.com; s=arc-20160816; b=BZSGOFiE+igyU4ro1QeJzvsIPG06TSuTex4fc8Y5SvOWOt8kKQ1ipGwf7cSjjtnXYx lRZAMUeuUZRTNSwzQxRrqtPQTT5w9ekyVPVnPUjxiSb595JPhTLjSWaddFmtHT31J0Zw glhgPDh05zfMy9gP39XWoJYyhgZPjLZa+iiFCTyP6z6qFHQ5wZiziSwCFCLJMhSwDyQn iu5KXcrQ7tG05r9yOQtwC/Jx/4VFpoNsxltugvLowijGNHgoavtFbo3x39d9zX1gl2M+ z9JDJWdxjlbt+TcdrdS8s9GX2IdVMa2vdM7yZ6M0sH1wAQRnGgpo5vnds5sVuuJrhzKj T0kw== 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=YJFMUo0oQWnSE7JE3YRrAG2WCUiKAMz52XYsXGsfYyLvIOReUBmtqRj4QjfS3OoZM7 dbS2hsD1cz4kO7v48elNMnRZliwQvIRp0Eu+77GgmIHbLkAJ9QyeUf+VfnC49iOVySiO VmEJnsEn0zImEygDRZdIkT0ja7WZucTZtDTLTtAHRofG3iTjqKQ6Q/rs0hpqf4g2tFce QsF9IH4QTH3bk1W70ut8NCwYLn6+ydZDaxvTrAmCk3OzvMS2kO0e/0twgq90xIQ5m5rr ilqzSME8SJBSIQ0vlb9DgZXgT497L9lB8VICFEC2i3aRZhpc77Dc25AhO2Wlkheg8XHc s5Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=cGasaolh; 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 o5-20020a1709062e8500b008bc042c16cesi5057058eji.827.2023.03.01.09.43.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Mar 2023 09:43:58 -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=cGasaolh; 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 DE7F53858C2C for ; Wed, 1 Mar 2023 17:43:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DE7F53858C2C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1677692635; 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=cGasaolh8Y8JfQrMyBxwf3Z50b/Am5vBFJJHSvXQUi7SdSRBJTUY8rrxxytJ4kmdV 4hpvX6LakogV+XC3f0YroI5E5EBdqC5ZX/Fy1kCQI9EXbMKTS3ejeDQoIuay5gow2f B4k20/pXO1QlNreJSC8CquU+pJwlI2bW9e1P9ta8= 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 8A2E93858410 for ; Wed, 1 Mar 2023 17:43:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8A2E93858410 Received: from valinor.ownit.se (84-55-68-216.customers.ownit.se [84.55.68.216]) by emagii.se (Postfix) with ESMTPSA id 365A112021A; Wed, 1 Mar 2023 18:43:39 +0100 (CET) Received-SPF: pass (emagii.beebytevps.io: connection is authenticated) To: binutils@sourceware.org Cc: nickc@redhat.com, Ulf Samuelsson Subject: [PATCH v8 01/11] DIGEST: LICENSING Date: Wed, 1 Mar 2023 18:43:15 +0100 Message-Id: <20230301174325.1858522-2-binutils@emagii.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230301174325.1858522-1-binutils@emagii.com> References: <20230301174325.1858522-1-binutils@emagii.com> MIME-Version: 1.0 X-PPP-Message-ID: <167769262282.170394.5016434652294978423@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?1759188236704307993?= X-GMAIL-MSGID: =?utf-8?q?1759188236704307993?= 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 Wed Mar 1 17:43:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Samuelsson X-Patchwork-Id: 63002 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3772421wrd; Wed, 1 Mar 2023 09:45:49 -0800 (PST) X-Google-Smtp-Source: AK7set8K6IKQySuKN5q6APFLGt0yo1CpgZcbNeT0kyfrAbZx10tM5G6mnXnaYctSGFCRsTQ87lui X-Received: by 2002:aa7:d44c:0:b0:4ad:7481:c2fe with SMTP id q12-20020aa7d44c000000b004ad7481c2femr7254669edr.22.1677692749365; Wed, 01 Mar 2023 09:45:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677692749; cv=none; d=google.com; s=arc-20160816; b=H01QL8dKDpRGh/NiCD8vSMTacBjkjKImHiEWH3CJa1BIONyFLKVQB1KPQJQFiLerfR 93QpFxHu99nmQeDYuPCbyOJQ7QGLkZYcziUoSdeykztUaDJGqP+cVAZQmQwoULR7kNhc wZ3sclRmNWD0uFHrG4zKszpcAbH16sfvdRAgVZL6E/fUWWdBEuLJjM6BBw+hNe6NtpvE xO/iIBZQONZWdj6AWu3JWTxs+9MkfPRXcnXFzVLmXTCxBS0wqnbNTFwPxHh1mcGiTZOz ZiPh8wF24Od4far7cQaHntna4L1yQvJCZrPG5hR5WorB+dPdXHHaL+mKxps84ouXegts 52Ww== 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=COW9h1wB/cAKXMxxsHMHtZAyBhHLBMPltAjRFvA0CQOC2mJOTK0+VQOxVpmD6FGn61 w1odHusgzpqXJqrwlPvXRAO9WhZB9ViRAUjIzqf3MwcVhAO86gCRSA0SktDlMFi/l0Vm PyWCOE1EtvL8eHhmBitB+U97UGOh5mlYK2xllBjbC5FVmo2CxFB2zKQ6lN7fJNymV86Z AJnZe3LN/OWjrQG95xOuYzYZw1LF9P9Fp6GftOB5b94HNGNHgDSTGgCTryil42WK5cxQ BSH5ZWk5Rie62UvQiz0/mnetP1CH5RdgbJCRCY9o/y6fWjl02gaxrWSrwb3qmnRzFvm4 B2bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=ODRMcZa3; 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 y21-20020a17090629d500b008e1cbdcd3bbsi5624505eje.513.2023.03.01.09.45.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Mar 2023 09:45:49 -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=ODRMcZa3; 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 9AA84384DD0C for ; Wed, 1 Mar 2023 17:44:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9AA84384DD0C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1677692688; 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=ODRMcZa316/yiil/mJR4i2MlYPKBUs79+/HDPvlGYl92eJhVWq0sV5qiFl8R1hVIa Lhc+MaGfbLCv4mOZ3IboTmbRARYU9jgwdL3d9lbQc9RaxNIPBTwfsGWkFdfXnMCeLn iO0+iMowv7NpQieFp0lem5ejTHQ3DVfc//I+Jvq4= 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 B2AA23858C62 for ; Wed, 1 Mar 2023 17:43:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B2AA23858C62 Received: from valinor.ownit.se (84-55-68-216.customers.ownit.se [84.55.68.216]) by emagii.se (Postfix) with ESMTPSA id EE315120220; Wed, 1 Mar 2023 18:43:45 +0100 (CET) Received-SPF: pass (emagii.beebytevps.io: connection is authenticated) To: binutils@sourceware.org Cc: nickc@redhat.com, Ulf Samuelsson Subject: [PATCH v8 02/11] DIGEST: NEWS Date: Wed, 1 Mar 2023 18:43:16 +0100 Message-Id: <20230301174325.1858522-3-binutils@emagii.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230301174325.1858522-1-binutils@emagii.com> References: <20230301174325.1858522-1-binutils@emagii.com> MIME-Version: 1.0 X-PPP-Message-ID: <167769262994.170507.2562735287128319841@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?1759188352810301028?= X-GMAIL-MSGID: =?utf-8?q?1759188352810301028?= 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 "