[PATCH 04/12] x86_64-defs.m4: Use X86_GNU_PROPERTY and X86_ENDBR
H.J. Lu
hjl.tools at gmail.com
Thu Jan 30 14:08:29 UTC 2020
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
More information about the gmp-devel
mailing list