Re: [PATCH] lib/crc: arm64: use .arch_extension to enable CRC and crypto

From: Emanuele Rocca

Date: Fri Nov 06 2026 - 03:17:08 EST


Hi Eric,

On 2026-11-05 07:42, Eric Biggers wrote:
> Thanks. Just to confirm, all supported versions of binutils and clang
> support this? (As per Documentation/process/changes.rst, the kernel
> currently supports binutils 2.30 and later, and clang 17.0.1 and later.)

Yes, binutils supports .arch_extension since 2.26:
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=ae527cd876fe35de72d876d3484e194ccc66232f

$ git tag --contains ae527cd876fe35de72d876d3484e194ccc66232f | head -1
binutils-2_26

clang added support in 8.0.0:
https://releases.llvm.org/8.0.0/docs/ReleaseNotes.html#changes-to-the-aarch64-target

> A lot of the arm64 crypto code uses ".arch armv8-a+crypto". Should
> those be replaced with ".arch_extension crypto" for the same reason?

I think so, yes. Let me look more closely, I'll send another series for
those if they need changing as well.

Thanks!
Emanuele