Gentoo Archives: gentoo-user

From: Marc Joliet <marcec@×××.de>
To: Gentoo <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] Am I in trouble now?
Date: Sun, 03 Dec 2017 20:22:49
Message-Id: 3161763.dWV9SEqChM@thetick
In Reply to: [gentoo-user] Am I in trouble now? by tuxic@posteo.de
1 Am Sonntag, 3. Dezember 2017, 19:56:19 CET schrieb tuxic@××××××.de:
2 > Hi,
3 >
4 > From the news I did everything to switch to the 17th profile EXCEPT
5 > emerge -e @world.
6 >
7 > One application which was recompiled was gcc-7.20.
8 >
9 > From my undertsand/point of view gcc now has to have the PIE-feature
10 >
11 > gcc-bin/7.2.0>l
12 > total 6676
13 > lrwxrwxrwx 1 root root 23 2017-12-02 16:36 c++ ->
14 > x86_64-pc-linux-gnu-c++ lrwxrwxrwx 1 root root 23 2017-12-02 16:36 cpp
15 > -> x86_64-pc-linux-gnu-cpp lrwxrwxrwx 1 root root 23 2017-12-02 16:36
16 > g++ -> x86_64-pc-linux-gnu-g++ lrwxrwxrwx 1 root root 23 2017-12-02
17 > 16:36 gcc -> x86_64-pc-linux-gnu-gcc -rwxr-xr-x 2 root root 26896
18 > 2017-12-02 16:36 gcc-ar
19 > -rwxr-xr-x 2 root root 26896 2017-12-02 16:36 gcc-nm
20 > -rwxr-xr-x 2 root root 26896 2017-12-02 16:36 gcc-ranlib
21 > lrwxrwxrwx 1 root root 24 2017-12-02 16:36 gcov ->
22 > x86_64-pc-linux-gnu-gcov -rwxr-xr-x 1 root root 495400 2017-12-02 16:36
23 > gcov-dump
24 > -rwxr-xr-x 1 root root 515944 2017-12-02 16:36 gcov-tool
25 > lrwxrwxrwx 1 root root 28 2017-12-02 16:36 gfortran ->
26 > x86_64-pc-linux-gnu-gfortran -rwxr-xr-x 2 root root 1002192 2017-12-02
27 > 16:36 x86_64-pc-linux-gnu-c++ -rwxr-xr-x 1 root root 998096 2017-12-02
28 > 16:36 x86_64-pc-linux-gnu-cpp -rwxr-xr-x 2 root root 1002192 2017-12-02
29 > 16:36 x86_64-pc-linux-gnu-g++ -rwxr-xr-x 1 root root 998096 2017-12-02
30 > 16:36 x86_64-pc-linux-gnu-gcc lrwxrwxrwx 1 root root 23 2017-12-02
31 > 16:36 x86_64-pc-linux-gnu-gcc-7.2.0 -> x86_64-pc-linux-gnu-gcc -rwxr-xr-x 2
32 > root root 26896 2017-12-02 16:36 x86_64-pc-linux-gnu-gcc-ar -rwxr-xr-x 2
33 > root root 26896 2017-12-02 16:36 x86_64-pc-linux-gnu-gcc-nm -rwxr-xr-x 2
34 > root root 26896 2017-12-02 16:36 x86_64-pc-linux-gnu-gcc-ranlib
35 > -rwxr-xr-x 1 root root 639312 2017-12-02 16:36 x86_64-pc-linux-gnu-gcov
36 > -rwxr-xr-x 1 root root 1002192 2017-12-02 16:36
37 > x86_64-pc-linux-gnu-gfortran
38 >
39 >
40 > solfire:gcc-bin/7.2.0>checksec --file x86_64-pc-linux-gnu-c++
41 > RELRO STACK CANARY NX PIE RPATH
42 > RUNPATH FORTIFY Fortified Fortifiable FILE Partial RELRO Canary found
43 > NX enabled No PIE No RPATH No RUNPATH
44 > Yes 8 21 x86_64-pc-linux-gnu-c++
45 >
46 >
47 >
48 > So...No PIE it says.
49 >
50 > /root #>eselect profile show
51 > Current /etc/portage/make.profile symlink:
52 > default/linux/amd64/17.0/no-multilib
53 >
54 > Before I start the rebuild of 2000++ packages ...
55 > Is this all correct up to this point?
56
57 Keep in mind that the news item literally says:
58
59 "2) Where supported, GCC will now build position-independent
60 executables (PIE) by default."
61
62 Note the "Where supported" bit. I don't know if that means "CPUs that this
63 works with" or "profiles that support this", but it looks like the "pie" USE
64 flag is forced globally in the profile and not deactivated in any of its sub-
65 profiles, so I'm tending to the former.
66
67 Of course, that doesn't mean that things are correct on your end, though. On
68 one of my computers, checksec does say "PIE enabled". Maybe you should try
69 compiling something else and verifying it. After all, there's probably a
70 reason why the "emerge -e @world" bit doesn't exclude any of the packages
71 previously rebuilt. I'll try to verify that on my desktop, though, which is
72 the one out of three computers I haven't migrated yet -- both my home server
73 and laptop have completed their "emerge -e @world" already (thankfully almost,
74 but not entirely, without problems).
75
76 > Cheers
77 > Meino
78
79 HTH
80 --
81 Marc Joliet
82 --
83 "People who think they know everything really annoy those of us who know we
84 don't" - Bjarne Stroustrup

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Am I in trouble now? Marc Joliet <marcec@×××.de>