Gentoo Archives: gentoo-hardened

From: pageexec@××××××××.hu
To: Alexander Gabert <pappy@g.o>, "Peter S. Mazinger" <ps.m@×××.net>
Cc: gentoo-hardened@l.g.o, linuxgeek71 <linuxgeek71@××××××××.net>, toolchain@g.o, "Peter S. Mazinger" <mps@××××××.intra>
Subject: Re: [gentoo-hardened] X won't start.
Date: Tue, 13 Jul 2004 21:13:26
Message-Id: 40F46C6A.7466.60FC644@localhost
In Reply to: Re: [gentoo-hardened] X won't start. by "Peter S. Mazinger"
1 > > Do you think the problem is with the new hardened gcc specs that
2 > > automatically adds -fPIC if no -fPIC is found?
3 > > This flipflop logic may be the cause for the .a library getting misbuilt
4 > > as PIC with the gcc internal preparation function showing up in the
5 > > object files...
6 >
7 > we do not enforce -fPIC, the enforcement is -fPIE (it should be somehow
8 > different, not usable in shared libs)
9
10 well, whichever it is, it makes those .o files PIC and then the elfloader
11 will barf on those symbols. i guess -fPIE can end up being enforced if
12 these modules are not compiled with -shared or whatever else your specs
13 file logic would trigger on. as i said in the previous answer, the correct
14 solution is to teach the elfloader to handle hidden symbols properly.
15
16
17 --
18 gentoo-hardened@g.o mailing list

Replies

Subject Author
Re: [gentoo-hardened] X won't start. Marco Morales <soulse@×××××.com>