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 |