x86: Add _CET_ENDBR to functions in crti.S
commit124bcde683d5d8b5c26bd2f535edcf3b7ab6108c
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 17 Jul 2018 23:04:41 +0000 (17 16:04 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 17 Jul 2018 23:05:18 +0000 (17 16:05 -0700)
tree2a5d04ec0beca2b81243a04cfe8bbdc77e1210e6
parent9145f0333d11683cb3d796246d1395c84b4a3516
x86: Add _CET_ENDBR to functions in crti.S

Add _CET_ENDBR to functions in crti.S, which are called indirectly, to
support IBT.

Tested on i686 and x86-64.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
* sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
(_fini): Likewise.
* sysdeps/x86_64/crti.S (_init): Likewise.
(_fini): Likewise.
ChangeLog
sysdeps/i386/crti.S
sysdeps/x86_64/crti.S