[2/4] i386/sub_n.S: Add a missing _CET_ENDBR to indirect jump target
diff mbox series

Message ID 20191210204710.4832-3-hjl.tools@gmail.com
State New
Headers show
Series
  • i386: Finish CET support
Related show

Commit Message

H.J. Lu Dec. 10, 2019, 8:47 p.m. UTC
Add a missing _CET_ENDBR to indirect jump targe in sysdeps/i386/sub_n.S.
---
 sysdeps/i386/sub_n.S | 1 +
 1 file changed, 1 insertion(+)

Patch
diff mbox series

diff --git a/sysdeps/i386/sub_n.S b/sysdeps/i386/sub_n.S
index 1562cc00fd..1760beb38f 100644
--- a/sysdeps/i386/sub_n.S
+++ b/sysdeps/i386/sub_n.S
@@ -91,6 +91,7 @@  L(oop):	movl	(%esi),%eax
 	movl	8(%esi),%eax
 	sbbl	8(%edx),%eax
 	movl	%eax,8(%edi)
+	_CET_ENDBR
 	movl	12(%esi),%eax
 	sbbl	12(%edx),%eax
 	movl	%eax,12(%edi)