Re: PING^2: [PATCH] i386; Add -mmanual-endbr and cf_check function attribute

2019-02-22 Thread H.J. Lu
> > > >> 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, > > >

Re: PING^2: [PATCH] i386; Add -mmanual-endbr and cf_check function attribute

2019-02-22 Thread H.J. Lu
>> 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

Re: PING^2: [PATCH] i386; Add -mmanual-endbr and cf_check function attribute

2018-12-14 Thread H.J. Lu
>> 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

Re: PING^2: [PATCH] i386; Add -mmanual-endbr and cf_check function attribute

2018-12-14 Thread Jeff Law
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

PING^2: [PATCH] i386; Add -mmanual-endbr and cf_check function attribute

2018-12-11 Thread H.J. Lu
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

Re: [PATCH] i386; Add -mmanual-endbr and cf_check function attribute

2018-12-03 Thread H.J. Lu
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

Re: [PATCH] i386; Add -mmanual-endbr and cf_check function attribute

2018-06-18 Thread Richard Biener
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

[PATCH] i386; Add -mmanual-endbr and cf_check function attribute

2018-06-15 Thread H.J. Lu
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