View previous topic :: View next topic |
Author |
Message |
johnhringiv n00b
Joined: 15 Mar 2018 Posts: 9
|
Posted: Thu Mar 15, 2018 9:07 pm Post subject: Using LTO with Hardened |
|
|
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 |
|
|
Juippisi Developer
Joined: 30 Sep 2005 Posts: 724 Location: /home
|
Posted: Fri Mar 16, 2018 12:01 pm Post subject: |
|
|
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 |
|
|
johnhringiv n00b
Joined: 15 Mar 2018 Posts: 9
|
Posted: Fri Mar 16, 2018 3:18 pm Post subject: |
|
|
Thanks for the reply! I'll be trying this out over the weekend. |
|
Back to top |
|
|
|