From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from emagii.se (www.emagii.com [185.133.207.17]) by sourceware.org (Postfix) with ESMTPS id 26A153858C31 for ; Thu, 16 Feb 2023 20:40:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 26A153858C31 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=emagii.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=emagii.com Received: from valinor.ownit.se (84-55-68-216.customers.ownit.se [84.55.68.216]) by emagii.se (Postfix) with ESMTPSA id E3B1A120153; Thu, 16 Feb 2023 21:40:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emagii.com; s=default; t=1676580010; bh=dpKF5Y+17cb9tet1uY0wI6Lq5Zp1+aBmMjJMfZMyzP0=; h=From:To:Subject; b=Ivl+NMoa8FwhoxyZ9agqHPZ3DD8eSExnOlQthu3vQ3n3bdHudnQ09FYfo/s5lmsu/ XpZiy1cM/pzOInurFuNd1RSDkKSLaKi6/i0kTarr/0DQI2+VdokvoWBHBqOIgDtzi4 OrOj59tyJsmqvq9voXCnmLyw1LrhL8/4hlu8Bg+k= Authentication-Results: emagii.beebytevps.io; spf=pass (sender IP is 84.55.68.216) smtp.mailfrom=binutils@emagii.com smtp.helo=valinor.ownit.se Received-SPF: pass (emagii.beebytevps.io: connection is authenticated) From: binutils@emagii.com To: binutils@sourceware.org Cc: nickc@redhat.com Subject: [RFC v0 0/1] Add support for CRC64 generation in linker Date: Thu, 16 Feb 2023 21:40:00 +0100 Message-Id: <20230216204006.1977-1-binutils@emagii.com> X-Mailer: git-send-email 2.17.1 X-PPP-Message-ID: <167658001018.3911996.6199637604838007456@localhost.localdomain> X-PPP-Vhost: emagii.com X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 List-Id: Cleaned up attempt to generate CRC64. Added code in lang_end() to calculate the CRC. So far, I can retrieve the location of the CRC and the start and end for the area. I can fetch the .text segment as an asection but if ( bfd_get_section_contents (link_info.output_bfd, ts, text_section, 0, ts->size)) fails... The patchset should contain the LICENSE and the testsuite but git-send-email does not like if I send 8 patches. Sending 6 patches is OK for some reason... [PATCH v0 1/6] CRC64 header [PATCH v0 2/6] ldlang.h: CRC64 [PATCH v0 3/6] ldlex.l: CRC64 [PATCH v0 4/6] ldgram.y: CRC64 [PATCH v0 5/6] ldlang.c: CRC64 [PATCH v0 6/6] ldlang.c: Try to get the .text section for checking