mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 02:03:35 +08:00
i386: Use _CET_NOTRACK in memset-sse2.S
* sysdeps/i386/i686/multiarch/memset-sse2.S (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump to jump table.
This commit is contained in:
parent
7e119cd582
commit
00e7b76a8f
@ -1,3 +1,9 @@
|
|||||||
|
2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* sysdeps/i386/i686/multiarch/memset-sse2.S
|
||||||
|
(BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
|
||||||
|
to jump table.
|
||||||
|
|
||||||
2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
|
2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
|
* sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
|
||||||
|
@ -63,7 +63,7 @@
|
|||||||
add (%ebx,%ecx,4), %ebx; \
|
add (%ebx,%ecx,4), %ebx; \
|
||||||
add %ecx, %edx; \
|
add %ecx, %edx; \
|
||||||
/* We loaded the jump table and adjusted EDX. Go. */ \
|
/* We loaded the jump table and adjusted EDX. Go. */ \
|
||||||
jmp *%ebx
|
_CET_NOTRACK jmp *%ebx
|
||||||
#else
|
#else
|
||||||
# define ENTRANCE
|
# define ENTRANCE
|
||||||
# define RETURN_END ret
|
# define RETURN_END ret
|
||||||
@ -75,7 +75,7 @@
|
|||||||
absolute offsets. */
|
absolute offsets. */
|
||||||
# define BRANCH_TO_JMPTBL_ENTRY(TABLE) \
|
# define BRANCH_TO_JMPTBL_ENTRY(TABLE) \
|
||||||
add %ecx, %edx; \
|
add %ecx, %edx; \
|
||||||
jmp *TABLE(,%ecx,4)
|
_CET_NOTRACK jmp *TABLE(,%ecx,4)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
.section .text.sse2,"ax",@progbits
|
.section .text.sse2,"ax",@progbits
|
||||||
|
Loading…
Reference in New Issue
Block a user