Maamoun TK <[email protected]> writes:

> --- a/asm.m4
> +++ b/asm.m4
> @@ -30,13 +30,26 @@ COFF_STYLE, yes,
>  define(<GMP_NUMB_BITS>,<>)dnl
>
>  define(<PROLOGUE>,
> +<ifelse(ASM_POWERPC64,no,
>  <.globl C_NAME($1)
>  DECLARE_FUNC(C_NAME($1))
> -C_NAME($1): ASM_X86_ENDBR>)
> +C_NAME($1): ASM_X86_ENDBR>,
> +<.globl C_NAME($1)
> +DECLARE_FUNC(C_NAME($1))
> +.section ".opd","aw"
> +.align 3
> +C_NAME($1):
> +.quad .C_NAME($1),.TOC.@tocbase,0
> +.previous
> +.align 5
> +.C_NAME($1):>)>)
>
>  define(<EPILOGUE>,
>  <ifelse(ELF_STYLE,yes,
> -<.size C_NAME($1), . - C_NAME($1)>,<>)>)
> +<ifelse(ASM_POWERPC64,no,
> +<.size C_NAME($1), . - C_NAME($1)>,
> +<.size .C_NAME($1), . - .C_NAME($1)
> +.size C_NAME($1), . - .C_NAME($1)>)>,<>)>)

Can you explain a bit more what's special with the powerpc64 prologue
and epilogue? What are the .C_NAME($1) symbols?

If possible, definitions could be moved to powerpc64/machine.m4 instead,
avoiding ifelse(ASM_POWERPC64,...).

It would also be nice with a powerpc64/README summarizing register usage
and calling conventions.

Regards,
/Niels

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677.
Internet email is subject to wholesale government surveillance.
_______________________________________________
nettle-bugs mailing list
[email protected]
http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs

Reply via email to