unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* PING^1: [PATCH 23/24] x86-64: Add endbr64 to tst-quadmod[12].S
@ 2018-07-18  3:18 H.J. Lu
  0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2018-07-18  3:18 UTC (permalink / raw
  To: GNU C Library, Carlos O'Donell

On Wed, Jun 13, 2018 at 8:32 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> Add endbr64 to tst-quadmod1.S and tst-quadmod2.S so that func and foo
> can be called indirectly.
>
>         * 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.
> ---
>  sysdeps/x86_64/tst-quadmod1.S | 6 ++++++
>  sysdeps/x86_64/tst-quadmod2.S | 6 ++++++
>  2 files changed, 12 insertions(+)
>
> diff --git a/sysdeps/x86_64/tst-quadmod1.S b/sysdeps/x86_64/tst-quadmod1.S
> index 26f2f1b599..c60f9dc89d 100644
> --- a/sysdeps/x86_64/tst-quadmod1.S
> +++ b/sysdeps/x86_64/tst-quadmod1.S
> @@ -28,6 +28,9 @@
>         .type   func, @function
>  func:
>         .cfi_startproc
> +#if defined __CET__ && (__CET__ & 1) != 0
> +       endbr64
> +#endif
>         xorl    %edi, %edi
>         jmp     exit@PLT
>         .cfi_endproc
> @@ -37,6 +40,9 @@ func:
>  foo:
>         .cfi_startproc
>         .cfi_def_cfa_register 6
> +#if defined __CET__ && (__CET__ & 1) != 0
> +       endbr64
> +#endif
>         movq    .Ljmp(%rip), %rax
>         subq    $BIAS, %rax
>         jmp     *%rax
> diff --git a/sysdeps/x86_64/tst-quadmod2.S b/sysdeps/x86_64/tst-quadmod2.S
> index e923adf672..af03444d4f 100644
> --- a/sysdeps/x86_64/tst-quadmod2.S
> +++ b/sysdeps/x86_64/tst-quadmod2.S
> @@ -27,6 +27,9 @@
>         .type   func, @function
>  func:
>         .cfi_startproc
> +#if defined __CET__ && (__CET__ & 1) != 0
> +       endbr64
> +#endif
>         xorl    %edi, %edi
>         jmp     exit@PLT
>         .cfi_endproc
> @@ -36,6 +39,9 @@ func:
>  foo:
>         .cfi_startproc
>         .cfi_def_cfa_register 6
> +#if defined __CET__ && (__CET__ & 1) != 0
> +       endbr64
> +#endif
>         movq    .Ljmp(%rip), %rax
>         subq    $BIAS, %rax
>         jmp     *%rax
> --
> 2.17.1
>

PING.


-- 
H.J.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-07-18  3:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-18  3:18 PING^1: [PATCH 23/24] x86-64: Add endbr64 to tst-quadmod[12].S H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).