1. Add X86_ENDBR to PROLOGUE_cpu to place "endbr64" at function entry. 2. Define ASM_END to use X86_GNU_PROPERTY for .note.gnu.property section.
* mpn/x86_64/x86_64-defs.m4 (PROLOGUE_cpu): Add X86_ENDBR. (ASM_END): New. --- mpn/x86_64/x86_64-defs.m4 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mpn/x86_64/x86_64-defs.m4 b/mpn/x86_64/x86_64-defs.m4 index 64e372980..83b4c27a6 100644 --- a/mpn/x86_64/x86_64-defs.m4 +++ b/mpn/x86_64/x86_64-defs.m4 @@ -94,6 +94,7 @@ m4_assert_numargs(1) ` GLOBL $1 TYPE($1,`function') $1: + X86_ENDBR ') @@ -149,6 +150,9 @@ ifdef(`PIC', `lea $1(%rip), $2') ') +dnl ASM_END + +define(`ASM_END', `X86_GNU_PROPERTY') define(`DEF_OBJECT', m4_assert_numargs_range(2,3) -- 2.24.1 _______________________________________________ gmp-devel mailing list gmp-devel@gmplib.org https://gmplib.org/mailman/listinfo/gmp-devel