Move the endbranch macro from the toplevel asm.m4 to the machine
specific x86_64/asm.m4. This follows the powerpc prologue and epilogue
approach.

Signed-off-by: Bill Roberts <bill.robe...@arm.com>
---
 asm.m4            | 2 +-
 x86_64/machine.m4 | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/asm.m4 b/asm.m4
index 2bb1068c..40fbd202 100644
--- a/asm.m4
+++ b/asm.m4
@@ -30,7 +30,7 @@ define(`GMP_NUMB_BITS',`')dnl
 define(`PROLOGUE',
 `.globl C_NAME($1)
 DECLARE_FUNC(C_NAME($1))
-C_NAME($1): ASM_X86_ENDBR')
+C_NAME($1):')
 
 define(`EPILOGUE',
 `ifelse(ELF_STYLE,yes,
diff --git a/x86_64/machine.m4 b/x86_64/machine.m4
index 28b258cd..3fc3098b 100644
--- a/x86_64/machine.m4
+++ b/x86_64/machine.m4
@@ -1,3 +1,8 @@
+define(`PROLOGUE',
+`.globl C_NAME($1)
+DECLARE_FUNC(C_NAME($1))
+C_NAME($1): ASM_X86_ENDBR')
+
 C OFFSET(i)
 C Expands to 4*i, or to the empty string if i is zero
 define(`OFFSET', `ifelse($1,0,,eval(4*$1))')
-- 
2.45.2

_______________________________________________
nettle-bugs mailing list -- nettle-bugs@lists.lysator.liu.se
To unsubscribe send an email to nettle-bugs-le...@lists.lysator.liu.se

Reply via email to