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 D48233858D33 for ; Thu, 16 Feb 2023 13:19:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D48233858D33 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 2B978120195; Thu, 16 Feb 2023 14:19:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emagii.com; s=default; t=1676553554; bh=/uvXN8Jdrs1UmgNagK9jDsOd8a+ph6GuRoATnsBCxKQ=; h=From:To:Subject; b=AFRcwWyI/uidL5Kw42H7eS9yUkSeEAUQA7qUEK7uoZLZuNI4DUeA9ikH+QQPATO2R Fz6O0bAQK/2UCpcHhj/HykC96ynUvYG2a2LzkHdtAjubw/o1w+UItyF0dSgkaeLfgt BGyHfBvEkztTbkxxjUDjJPLsCDqhLNIN5FIb5plM= 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 14:19:04 +0100 Message-Id: <20230216131905.1012-1-binutils@emagii.com> X-Mailer: git-send-email 2.17.1 X-PPP-Message-ID: <167655355441.3888626.10836934729255887740@localhost.localdomain> X-PPP-Vhost: emagii.com X-Spam-Status: No, score=-5.3 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: Here is the first draft of introducing CRC64 generation in the linker So far it * reserves room for the CRC (8 bytes) * Declares a symbol ___CRC64___ for the address of the CRC. * Allows specifying the polynom (ECMA, ISO or your own) * Allows for inversion in the CRC calculation (CRC64-WE) * Allows specifying the area that should be checked. * Declares the symbol "___CRC64_START__" for the beginning * Declares the symbol "___CRC64_END__" for the end (not included) * Creates a 2kB table which speeds up the CRC calculation * Can insert the 2kB table into the .text section It does not yet calculate the CRC of the specified area. I need to figure out how to access the section(s) covered for calculating the CRC (between ___CRC64_START___ and ___CRC64_END___) and then insert the calculated CRC at ___CRC64___ before the output is generated. [PATCH v0 1/1] [RFC] Add support for CRC64 generation in linker