Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: Gentoo Users List <gentoo-user@l.g.o>
Subject: [gentoo-user] If I avaoided pic/PIC/pie; would it help/hurt?
Date: Tue, 05 Dec 2017 22:49:00
Message-Id: 20171205224852.GA19788@waltdnes.org
1 I'm looking at going with...
2
3 CFLAGS="-O2 -march=native -mfpmath=sse -fomit-frame-pointer -pipe -fno-pic -fno-PIC -fno-pie -fno-unwind-tables -fno-asynchronous-unwind-tables"
4 CXXFLAGS="${CFLAGS}"
5
6 ...and with -pic in USE. This is the mirror image of the defaults. Any
7 obvious problems, aside from losing a bit of security? In case you're
8 wondering about the "pic" USE flag...
9
10 [d531][waltdnes][~] grep ":pic " /usr/portage/profiles/use.local.desc
11 app-arch/gzip:pic - disable optimized assembly code that is not PIC friendly
12 app-benchmarks/ramspeed:pic - Force shared libraries to be built as PIC (this is slower)
13 app-emulation/open-vm-tools:pic - Force shared libraries to be built as PIC
14 dev-util/electron:pic - Disable optimized assembly code that is not PIC friendly
15 games-emulation/yabause:pic - disable optimized assembly code that is not PIC friendly
16 games-fps/duke3d:pic - disable optimized assembly code that is not PIC friendly
17 gnome-base/orbit:pic - Force libname-server-2 to be built as PIC; needed on hardened systems
18 media-libs/libpostproc:pic - Force shared libraries to be built as PIC (this is slower).
19 media-libs/mesa:pic - disable optimized assembly code that is not PIC friendly
20 media-libs/x264:pic - disable optimized assembly code that is not PIC friendly
21 media-libs/x265:pic - Disable optimized assembly code that is not PIC friendly
22 media-libs/xvid:pic - disable optimized assembly code that is not PIC friendly
23 media-video/ffmpeg:pic - Force shared libraries to be built as PIC (this is slower)
24 media-video/libav:pic - Force shared libraries to be built as PIC (this is slower).
25 media-video/transcode:pic - disable optimized assembly code that is not PIC friendly
26 www-client/chromium:pic - Disable optimized assembly code that is not PIC friendly
27
28 --
29 Walter Dnes <waltdnes@××××××××.org>
30 I don't run "desktop environments"; I run useful applications

Replies

Subject Author
Re: [gentoo-user] If I avaoided pic/PIC/pie; would it help/hurt? Nils Holland <nholland@×××××.org>