public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [RFC] News item: GCC 6 defaults to USE="pie ssp"
@ 2017-05-09 17:26 Matthias Maier
  2017-05-09 20:10 ` Alexis Ballier
  2017-05-09 23:58 ` [gentoo-dev] [RFC] News item: GCC 6 defaults to USE="pie ssp", v2 Matthias Maier
  0 siblings, 2 replies; 38+ messages in thread
From: Matthias Maier @ 2017-05-09 17:26 UTC (permalink / raw
  To: gentoo-dev; +Cc: toolchain

[-- Attachment #1: Type: text/plain, Size: 1522 bytes --]

Title: GCC 6 defaults to USE="pie ssp"
Author: Matthias Maier <tamiko@gentoo.org>
Content-Type: text/plain
Posted: 2017-05-07
Revision: 1
News-Item-Format: 1.0
Display-If-Installed: >=sys-devel/gcc-6.3.0
Display-If-Keyword: amd64

In Gentoo, several GCC features can be default disabled or enabled 
via use-flags of sys-devel/gcc. Starting with gcc-4.8.3 we have already
enabled default SSP [1]. Since the PIE patchset for default position 
independent executable support was integrated upstream [2,3], starting 
with gcc-6.3 we are also enabling PIE by default (via a default-enabled 
use-flag pie) in regular (non-hardened) profiles.

[Additionally, following Gentoo policies, the default-off use-flags 
nopie (only present in Hardened) and nossp are replaced starting with 
gcc-6 by default-on use-flags pie and ssp.]

Be advised that switching from an older version to GCC 6 will enable the 
PIE feature by default. This should not cause many problems, but it may 
be necessary to recompile parts of your userland. An indicator are 
linker errors of the form [4]

  relocation R_X86_64_32 against `.rodata.str1.1' can not be used when
  making a shared object; recompile with -fPIC

[1] https://www.gentoo.org/support/news-items/2014-06-15-gcc48_ssp.html
[2] https://gcc.gnu.org/gcc-6/changes.html
[3] A big thanks to all developers and members of the Gentoo community that
    made upstreaming the pie patchset and other hardening options possible!
[4] https://bugs.gentoo.org/617698

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 850 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

end of thread, other threads:[~2017-05-12  0:20 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-09 17:26 [gentoo-dev] [RFC] News item: GCC 6 defaults to USE="pie ssp" Matthias Maier
2017-05-09 20:10 ` Alexis Ballier
2017-05-09 20:27   ` Mike Gilbert
2017-05-10 12:53     ` Chí-Thanh Christopher Nguyễn
2017-05-09 20:55   ` Matthias Maier
2017-05-09 20:59     ` [gentoo-dev] [PATCH] profiles: Mask pie useflag for >=sys-devel/gcc-6 Matthias Maier
2017-05-09 21:18     ` [gentoo-dev] [RFC] News item: GCC 6 defaults to USE="pie ssp" Hanno Böck
2017-05-09 22:47       ` Alexis Ballier
2017-05-09 23:13         ` Matthias Maier
2017-05-10  7:34           ` Alexis Ballier
2017-05-09 23:40         ` Andreas K. Huettel
2017-05-10  7:24           ` Alexis Ballier
2017-05-10  7:28       ` [gentoo-dev] " Martin Vaeth
2017-05-10 13:20         ` Matthias Maier
2017-05-10 13:31           ` James Le Cuirot
2017-05-10 13:35             ` Andreas K. Huettel
2017-05-10 13:38               ` Kristian Fiskerstrand
2017-05-10 15:26         ` Hanno Böck
2017-05-11  9:55           ` Martin Vaeth
2017-05-10 20:31         ` Luis Ressel
2017-05-11 18:37           ` Martin Vaeth
2017-05-09 23:44   ` [gentoo-dev] " Andreas K. Huettel
2017-05-10  5:07     ` Jason Zaman
2017-05-10  5:58       ` Matthias Maier
2017-05-10  7:23     ` Alexis Ballier
2017-05-10  9:31       ` Kent Fredric
2017-05-09 23:58 ` [gentoo-dev] [RFC] News item: GCC 6 defaults to USE="pie ssp", v2 Matthias Maier
2017-05-10  7:52   ` Alexis Ballier
2017-05-10  9:19     ` Kristian Fiskerstrand
2017-05-10 11:58       ` Dirkjan Ochtman
2017-05-10 13:29         ` New profiles for default-pie transition (was: Re: [gentoo-dev] [RFC] News item: GCC 6 defaults to USE="pie ssp", v2) Andreas K. Huettel
2017-05-10 13:42           ` [gentoo-dev] Re: New profiles for default-pie transition Kristian Fiskerstrand
2017-05-10 14:24             ` Alexis Ballier
2017-05-10 13:49           ` Matthias Maier
2017-05-10 15:32           ` New profiles for default-pie transition (was: Re: [gentoo-dev] [RFC] News item: GCC 6 defaults to USE="pie ssp", v2) Hanno Böck
2017-05-10 16:07             ` [gentoo-dev] Re: New profiles for default-pie transition Matthias Maier
2017-05-11 23:39   ` [gentoo-dev] [RFC] News item: GCC 6 defaults to USE="pie ssp", v2 Walter Dnes
2017-05-12  0:19     ` Matthias Maier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox