>
> > >> The goal of this patch is to add as few as ENDBR as possible
> > >> to reduce program size as much as possible. Also there is no
> > >> relocation for indirect branch via register.
> > >>
> > > Hi Honza, Jakub, Jeff, Richard,
> > >
>> relocation for indirect branch via register.
> >>
> > Hi Honza, Jakub, Jeff, Richard,
> >
> > Here is the rebased patch. Can you guys take a look?
> >
> > Thanks.
> >
> >
> > -- H.J.
> >
> >
> > 0001-i386-Add-mmanual-endbr-a
>> relocation for indirect branch via register.
> >>
> > Hi Honza, Jakub, Jeff, Richard,
> >
> > Here is the rebased patch. Can you guys take a look?
> >
> > Thanks.
> >
> >
> > -- H.J.
> >
> >
> > 0001-i386-Add-mmanual-endbr-a
gt;
>
> -- H.J.
>
>
> 0001-i386-Add-mmanual-endbr-and-cf_check-function-attribu.patch
>
> From 5934c6be6495b2d6f278646e25f9e684f6610e2b Mon Sep 17 00:00:00 2001
> From: "H.J. Lu"
> Date: Thu, 14 Jun 2018 09:19:27 -0700
> Subject: [PATCH] i386; Add -mma
t; to reduce program size as much as possible. Also there is no
> relocation for indirect branch via register.
>
Hi Honza, Jakub, Jeff, Richard,
Here is the rebased patch. Can you guys take a look?
Thanks.
--
H.J.
From 5934c6be6495b2d6f278646e25f9e684f6610e2b Mon Sep 17 00:00:00 200
On Mon, Jun 18, 2018 at 2:20 AM Richard Biener
wrote:
>
> On Fri, Jun 15, 2018 at 2:59 PM H.J. Lu wrote:
> >
> > Currently GCC inserts ENDBR instruction at entries of all non-static
> > functions, unless LTO compilation is used. Marking all functions,
> > which are not called indirectly with noc
On Fri, Jun 15, 2018 at 2:59 PM H.J. Lu wrote:
>
> Currently GCC inserts ENDBR instruction at entries of all non-static
> functions, unless LTO compilation is used. Marking all functions,
> which are not called indirectly with nocf_check attribute, is not
> ideal since 99% of functions in a progr
Currently GCC inserts ENDBR instruction at entries of all non-static
functions, unless LTO compilation is used. Marking all functions,
which are not called indirectly with nocf_check attribute, is not
ideal since 99% of functions in a program may be of this kind.
This patch adds -mmanual-endbr an