From patchwork Wed Mar 1 15:45:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Samuelsson X-Patchwork-Id: 62967 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3704299wrd; Wed, 1 Mar 2023 07:46:35 -0800 (PST) X-Google-Smtp-Source: AK7set+2//JIPqKqq+3bgCza5wjzeVCdJeyoDXS8TmaszTawKRMXuy2KET4PUcQDpFZykEQfm0MX X-Received: by 2002:aa7:d6c4:0:b0:4af:59c0:744a with SMTP id x4-20020aa7d6c4000000b004af59c0744amr8376473edr.24.1677685595093; Wed, 01 Mar 2023 07:46:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677685595; cv=none; d=google.com; s=arc-20160816; b=JzQsEyevJqQiBqvtsOfAAETTOdww+EhLnS76txxYJLwEG7jUcPdFkwVLaiVBNvyIy7 GKft/Pbkz20405RSF7lVMAD+YbKEzqGvwOh7oA9erbM4TjMr3MM2aAMttaUhSLc+6yUy XrJ+bjQooLq1W8Q9nte3n5Dh6c4cSmKXpfKofm59DSVZbEBfCoHHM23wXG6LM79xc1s/ GLLDarg29R5yzCUkyQ5HvO+CEs9dUk94zmqYMaR24yFXxb2ApfHLR4BXD1fn5J/RRu4y xAh+V+DhxpT5I7umu0N9WgnSA3FsgbyEYzE/3Vao+SjaHHG1aNcqkevWDdkGgBoYDL82 mPrQ== 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=NdE6OlbHTYhsLqAzyB3nc3UjeCcPuVLzrocA/B77MLN5BiAC5qz0xMN1NoEwTqP5RL 5QVu0fl8fl8AA77V9cUe62W7NMP6yosPV4yf+3LGlXVXns5j6fuhm8dIj3LHib0JyeGZ uli+D1C7+WJiPgnsEaguF67qXIrvtCAJEDccl11vZcUedP+R1RVPUy0Cjornlbyvi6Ey XR7RAw2NAXH14ANvLfKJAac60o3/QshwQZ4JiGSNBPdNp1ph6Y4FD7l1L505y6h6ifzv KGKnZBLfZ2FdXnvaETu2gLCYTSFH6yksUPMct94ks4R3d0Trd+MV/Oru4zDjCUZQEWiA oFdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=b2fLeX0+; 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 o16-20020aa7c7d0000000b004acb8e63141si14394991eds.290.2023.03.01.07.46.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Mar 2023 07:46:35 -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=b2fLeX0+; 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 0D4D23857365 for ; Wed, 1 Mar 2023 15:46:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0D4D23857365 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1677685568; 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=b2fLeX0+2gpaZrCX16InhJsJga1Y8VKtjyx5o7266bH/9Vj6jXpR2+aFWmdYxgFUL 17bUtOSq+JynhZ+IClopyO/E502UZf1sBskpSQ4aWClaVU0wnkileamQv02Nd5ss6g ZZuP6/1ahgKMU/UWwjspIgVFwG5YywkGZFHcf9MM= 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 016933858002 for ; Wed, 1 Mar 2023 15:45:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 016933858002 Received: from valinor.ownit.se (84-55-68-216.customers.ownit.se [84.55.68.216]) by emagii.se (Postfix) with ESMTPSA id 63CA712051D; Wed, 1 Mar 2023 16:45:29 +0100 (CET) Received-SPF: pass (emagii.beebytevps.io: connection is authenticated) To: binutils@sourceware.org Cc: nickc@redhat.com, Ulf Samuelsson Subject: [PATCH v7 01/11] DIGEST: LICENSING Date: Wed, 1 Mar 2023 16:45:03 +0100 Message-Id: <20230301154513.1850449-2-binutils@emagii.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230301154513.1850449-1-binutils@emagii.com> References: <20230301154513.1850449-1-binutils@emagii.com> MIME-Version: 1.0 X-PPP-Message-ID: <167768553353.100037.8843573478027326562@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?1759180850085845150?= X-GMAIL-MSGID: =?utf-8?q?1759180850085845150?= 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 15:45:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Samuelsson X-Patchwork-Id: 62966 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3704067wrd; Wed, 1 Mar 2023 07:46:08 -0800 (PST) X-Google-Smtp-Source: AK7set95K/YzEOQaseuJnV/8NHgSlb4dOI+0P2EGn0B7q6xBNqhwuadeEDQPp/gpDUeuzNobtY32 X-Received: by 2002:a17:907:7750:b0:886:ec6e:4c1 with SMTP id kx16-20020a170907775000b00886ec6e04c1mr7536477ejc.59.1677685568899; Wed, 01 Mar 2023 07:46:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677685568; cv=none; d=google.com; s=arc-20160816; b=pEomwxXXPnCYW/7SiPPBPjzCKntYj8AnIg75WtaaKl3idrm/pMStZv8oCzxyE+zIJr rYTyA1BTZcCJMBLdWavPvfzOE3Crlvx0MCFIgBJqZb3HmLOordhNTbk/cTdMe319d5/v LyrRl9z/bxlhHejVCEKWkd3BYXNHa3CrVOPdqLVjnsMIlLc2mpTmmm8Czol/drk8T3+M 1cMZq/znI81CFSox3lFuj7PC49Q8rpAmEiEnvL1Da7FxpxPuo70UyLlD6BGGqaRvGb6g 0mH0pkeccKVTzDJoro8FQ0rpc+AG6Zx+Z2krlOivk5Fkaf1oQhgYNT5Zpa6WiuCgGx8Z CKhw== 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=GaHzVp+FJXo2GvAqGGOSUt/wDrB6GXzt71UsISy1F/arRnRQVBpuZMK1yyGhajXTko fCiIWCuRRHOC6bi40Gi+kJhwF9ekjvciV34lDgnZUWBg2MhdnYMfTEfyHveW/oA3rpT1 AXbyMV66mm8mkYTBt8cOuo+JnnY4G0Ve/qo/Xpb4vntFB//pv2I5cMjwI0z6qXZnW0gZ l6qBRMcO/gR1pKMdjsGMWsjYiAPXZFI1dbsyDShB1B1ayIr56Hx8A9LwEcxd6k4jR8gZ PAmO9xBa0sQ7xXcyIo5tJ8pwcNd7q+paL/LQw7br7UuKke5dKPdTtoYeC8lEU0hue7yJ ABzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=RFWL6Aam; 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 u9-20020a170906b10900b008c3baa1f86asi14927352ejy.851.2023.03.01.07.46.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Mar 2023 07:46:08 -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=RFWL6Aam; 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 7D8B2385828D for ; Wed, 1 Mar 2023 15:45:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7D8B2385828D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1677685555; 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=RFWL6Aam04uM//2qsWDHuGrQvqoFH7VqqkIRqBwvKBMegATTc0rhzV9oGs00kBLly UMQ4uW7/SMj2xX554t+4PzMM8hh5nEYdwtIlznN6yUtf42+Ii3QsRe9zyyHyUsRwKk tibaI6ksTi9QiqJKB2Pjb28VpGnKh1gCjwEOQhxg= 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 7B80A3857C45 for ; Wed, 1 Mar 2023 15:45:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7B80A3857C45 Received: from valinor.ownit.se (84-55-68-216.customers.ownit.se [84.55.68.216]) by emagii.se (Postfix) with ESMTPSA id 1A5F91201F3; Wed, 1 Mar 2023 16:45:36 +0100 (CET) Received-SPF: pass (emagii.beebytevps.io: connection is authenticated) To: binutils@sourceware.org Cc: nickc@redhat.com, Ulf Samuelsson Subject: [PATCH v7 02/11] DIGEST: NEWS Date: Wed, 1 Mar 2023 16:45:04 +0100 Message-Id: <20230301154513.1850449-3-binutils@emagii.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230301154513.1850449-1-binutils@emagii.com> References: <20230301154513.1850449-1-binutils@emagii.com> MIME-Version: 1.0 X-PPP-Message-ID: <167768554031.100136.5339653525079925316@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?1759180822778530597?= X-GMAIL-MSGID: =?utf-8?q?1759180822778530597?= 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 "