Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Using LTO with Hardened
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
johnhringiv
n00b
n00b


Joined: 15 Mar 2018
Posts: 9

PostPosted: Thu Mar 15, 2018 9:07 pm    Post subject: Using LTO with Hardened Reply with quote

I'm currently using a combined profile of plasma and hardened. I'm wondering if anyone here has attempted using https://github.com/InBetweenNames/gentooLTO with a similar setup. Additionally the hardened profile uses fstack-protector-all if I wanted to switch that to fstack-protector-strong could I do that via the cflags? Thanks in advance for any assistance.
Back to top
View user's profile Send private message
Juippisi
Developer
Developer


Joined: 30 Sep 2005
Posts: 724
Location: /home

PostPosted: Fri Mar 16, 2018 12:01 pm    Post subject: Reply with quote

I dont think there should be problems related to that. However you will have packages that fail to build due to LTO and you will have packages that fail due to hardened flags.

As for the -fstack, I do believe "last" given instruction to gcc is the one it listens to, so yeah if you specify fstack-protector-strong in make.conf or package.env I believe it uses that. However, you can copy the hardened profile and make your own based on that :)
Back to top
View user's profile Send private message
johnhringiv
n00b
n00b


Joined: 15 Mar 2018
Posts: 9

PostPosted: Fri Mar 16, 2018 3:18 pm    Post subject: Reply with quote

Thanks for the reply! I'll be trying this out over the weekend.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum