[PATCH v2] crypto: arm64/poly1305 - move data to rodata section
Herbert Xu
herbert at gondor.apana.org.au
Sat Aug 17 00:07:51 PDT 2024
On Tue, Aug 06, 2024 at 05:54:44AM +0000, Jia He wrote:
> When objtool gains support for ARM in the future, it may encounter issues
> disassembling the following data in the .text section:
> > .Lzeros:
> > .long 0,0,0,0,0,0,0,0
> > .asciz "Poly1305 for ARMv8, CRYPTOGAMS by \@dot-asm"
> > .align 2
>
> Move it to .rodata which is a more appropriate section for read-only data.
>
> There is a limit on how far the label can be from the instruction, hence
> use "adrp" and low 12bits offset of the label to avoid the compilation
> error.
>
> Signed-off-by: Jia He <justin.he at arm.com>
> ---
> v2:
> - use adrp+offset to avoid compilation error(kernel test bot and Andy)
> v1: https://lkml.org/lkml/2024/8/2/616
>
> arch/arm64/crypto/poly1305-armv8.pl | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert at gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
More information about the linux-arm-kernel
mailing list