[From nobody Fri Jan 22 12:20:20 2021 Return-path: <uucp@wheatstone.g10code.de> Envelope-to: wk@wheatstone.g10code.de Delivery-date: Thu, 21 Jan 2021 21:15:07 +0100 Received: from uucp by wheatstone.g10code.de with local-rmail (Exim 4.92 #5 (Debian)) id 1l2gMF-00075I-UK for <wk@wheatstone.g10code.de>; Thu, 21 Jan 2021 21:15:07 +0100 Received: from mail-qk1-x733.google.com ([2607:f8b0:4864:20::733]) by kerckhoffs.g10code.com with esmtps (Exim 4.89 #1 (Debian)) id 1l2gIi-0002fP-66; Thu, 21 Jan 2021 21:11:28 +0100 Received: by mail-qk1-x733.google.com with SMTP id k193so2965983qke.6; Thu, 21 Jan 2021 12:11:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version; bh=mskfyizFRl+abIbgRW/xRw45s6R9t9cV/BRzQR2Jbrk=; b=HVCMcl7aHarQcUCC/nHhyv6jSwVsUD8eVM8Ndy/jURsbZibRDBRW5fhpRzCyx2ViN+ enlycPeoRhhaFY0vlfJk3rtjrU08pnZ0P1+XNvkdDZa+67l4yZC7sgnky7n1ePOl+W/I KTQdoAdpiBwekMiuHT5tvXa+HK4sm4BDMjBMrhMyci2Xz90rVOhUBCSnu57ZnK4ej28w cpXiEiXXif4sjfgdpAt6S6krxoQYJj9tZArLP/pD16Ba/IFWS3y1MifbhkPXZqOaMEcI 89w6ZthXceLyWr6TvJqv2zPs9ZsSYf3UIR8ByyzT3dyu5maaiHixUFjkCc4OLRYbCXUb 9muA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version; bh=mskfyizFRl+abIbgRW/xRw45s6R9t9cV/BRzQR2Jbrk=; b=RlHPHa8yav5K11/TbILVzA2PJXtr01meGyQAuc3W4B5fU1CBVE4paQnQecDMYqViQw uWLKWyvQRbtYqM0WXzVzQ6+YuIkee5vk9p1vHS0x++484L/JmZ6aH2qYtpTitmGjNmqW geI3n0t72+zpuNDUVeN1gKkNQVK4dLFflwpTSwAMwgyhlSmbanemK0kTcU6qh9rCGDIJ zWugUNivfDOq/aS1pGDSEyU0pZUjYFzgzQHKSkNpQWv2w0ZMSYQfOd+2ckbkYndeEZnc DiCKJb/jFxOpkuZrI3zq9xw3YqNk3fFCYzRhXnQy7rFm5uSTPazfp7XRQWfuHob/KIfe wnZQ== X-Gm-Message-State: AOAM531RLkEvrN6pjymYG8lfteGR7irPtcooxLRSH9A1vR/Ajc88vrpT UYyy0njDTRIQnYR/ELPWSjhjK9u6fcE= X-Google-Smtp-Source: ABdhPJz7i7qNfeSiawQf0qaePbGAIvgJyYMamPP9l36kkQBrtlts9sw/l21EI41KBE71w4S3RbOJvg== X-Received: by 2002:a37:b4c4:: with SMTP id d187mr1258079qkf.93.1611255956442; Thu, 21 Jan 2021 11:05:56 -0800 (PST) Received: from callisto (c-73-175-137-55.hsd1.pa.comcast.net. [73.175.137.55]) by smtp.gmail.com with ESMTPSA id e38sm4096438qtb.30.2021.01.21.11.05.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Jan 2021 11:05:55 -0800 (PST) From: David Michael <fedora.dm0@gmail.com> To: gnupg-devel@gnupg.org Cc: wk@gnupg.org Subject: [PATCH] cipher/sha512: Fix non-NEON ARM assembly implementation Date: Thu, 21 Jan 2021 14:05:54 -0500 Message-ID: <87o8hidsa5.fsf@gmail.com> X-Sender-Host: mail-qk1-x733.google.com MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable * cipher/sha512.c (do_transform_generic) [USE_ARM_ASM]: Switch to the non-NEON assembly implementation. =2D- When building for ARM CPUs that don't support NEON, linking fails with an "undefined reference to _gcry_sha512_transform_armv7_neon" error. Switching to the non-NEON assembly function corrects this. =2D-- cipher/sha512.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cipher/sha512.c b/cipher/sha512.c index f70cdf42..0f4c304f 100644 =2D-- a/cipher/sha512.c +++ b/cipher/sha512.c @@ -291,7 +291,7 @@ static unsigned int do_transform_generic (void *context, const unsigned char *data, size_t nbl= ks) { SHA512_CONTEXT *hd =3D context; =2D return _gcry_sha512_transform_armv7_neon (&hd->state, data, k, nblks); + return _gcry_sha512_transform_arm (&hd->state, data, k, nblks); } #else static unsigned int =2D-=20 2.26.2 ]