x86-64: Add endbr64 to tst-quadmod[12].S
Add endbr64 to tst-quadmod1.S and tst-quadmod2.S so that func and foo can be called indirectly. Reviewed-by: Carlos O'Donell <carlos@redhat.com> * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is enabled. (foo): Likewise. * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise. (foo): Likewise.
This commit is contained in:
parent
b99f1c957d
commit
ca027e0f62
|
@ -1,3 +1,11 @@
|
||||||
|
2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
|
||||||
|
enabled.
|
||||||
|
(foo): Likewise.
|
||||||
|
* sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
|
||||||
|
(foo): Likewise.
|
||||||
|
|
||||||
2018-07-20 Joseph Myers <joseph@codesourcery.com>
|
2018-07-20 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
* scripts/build-many-glibcs.py (Context.checkout): Default
|
* scripts/build-many-glibcs.py (Context.checkout): Default
|
||||||
|
|
|
@ -28,6 +28,9 @@
|
||||||
.type func, @function
|
.type func, @function
|
||||||
func:
|
func:
|
||||||
.cfi_startproc
|
.cfi_startproc
|
||||||
|
#if defined __CET__ && (__CET__ & 1) != 0
|
||||||
|
endbr64
|
||||||
|
#endif
|
||||||
xorl %edi, %edi
|
xorl %edi, %edi
|
||||||
jmp exit@PLT
|
jmp exit@PLT
|
||||||
.cfi_endproc
|
.cfi_endproc
|
||||||
|
@ -37,6 +40,9 @@ func:
|
||||||
foo:
|
foo:
|
||||||
.cfi_startproc
|
.cfi_startproc
|
||||||
.cfi_def_cfa_register 6
|
.cfi_def_cfa_register 6
|
||||||
|
#if defined __CET__ && (__CET__ & 1) != 0
|
||||||
|
endbr64
|
||||||
|
#endif
|
||||||
movq .Ljmp(%rip), %rax
|
movq .Ljmp(%rip), %rax
|
||||||
subq $BIAS, %rax
|
subq $BIAS, %rax
|
||||||
jmp *%rax
|
jmp *%rax
|
||||||
|
|
|
@ -27,6 +27,9 @@
|
||||||
.type func, @function
|
.type func, @function
|
||||||
func:
|
func:
|
||||||
.cfi_startproc
|
.cfi_startproc
|
||||||
|
#if defined __CET__ && (__CET__ & 1) != 0
|
||||||
|
endbr64
|
||||||
|
#endif
|
||||||
xorl %edi, %edi
|
xorl %edi, %edi
|
||||||
jmp exit@PLT
|
jmp exit@PLT
|
||||||
.cfi_endproc
|
.cfi_endproc
|
||||||
|
@ -36,6 +39,9 @@ func:
|
||||||
foo:
|
foo:
|
||||||
.cfi_startproc
|
.cfi_startproc
|
||||||
.cfi_def_cfa_register 6
|
.cfi_def_cfa_register 6
|
||||||
|
#if defined __CET__ && (__CET__ & 1) != 0
|
||||||
|
endbr64
|
||||||
|
#endif
|
||||||
movq .Ljmp(%rip), %rax
|
movq .Ljmp(%rip), %rax
|
||||||
subq $BIAS, %rax
|
subq $BIAS, %rax
|
||||||
jmp *%rax
|
jmp *%rax
|
||||||
|
|
Loading…
Reference in New Issue