1 |
pageexec@××××××××.hu wrote: |
2 |
|
3 |
>>Duplicate symbol __i686.get_pc_thunk.bx in /usr/X11R6/lib/modules/fo |
4 |
>>p.a:bitmapmod.o |
5 |
>>Also defined in /usr/X11R6/lib/modules/fonts/libbitmap.a |
6 |
>> |
7 |
>>The only way I have been able to fix it is to recompile gcc without the |
8 |
>>hardened use flag and then recompile xfree. Does anyone have any idea |
9 |
>>how I can run a hardened system and still use X? |
10 |
>> |
11 |
>> |
12 |
> |
13 |
>first of all, even if you can compile X with the elf loader (as in |
14 |
>your case above) it would not work under PaX, you have to use a |
15 |
>static server or the dlloader for that. latter is work in progress |
16 |
>(or lots of manual work) so that leaves a static server for now, and |
17 |
>if you need 3rd party binary drivers then you can't do even that, you |
18 |
>have to disable PaX on your X server. |
19 |
> |
20 |
>second, the above error is the result of hardened gcc forcefully |
21 |
>compiling the .o files of libbitmap.a with -fPIC and some problem |
22 |
>in the elfloader that doesn't take into account that the symbol |
23 |
>in question is marked as hidden and thus should not be visible |
24 |
>outside of a .o file let alone generate duplicate symbol errors. |
25 |
> |
26 |
> |
27 |
dear pipacs, |
28 |
i talked to solar about this today and had the same assumption: the gcc |
29 |
is "spreading" something like that into the object files which does not |
30 |
belong there normally... but my assumption was a mere compiler error or |
31 |
sth. your explanation makes even more sense than that. |
32 |
Do you think the problem is with the new hardened gcc specs that |
33 |
automatically adds -fPIC if no -fPIC is found? |
34 |
This flipflop logic may be the cause for the .a library getting misbuilt |
35 |
as PIC with the gcc internal preparation function showing up in the |
36 |
object files... |
37 |
|
38 |
Thanks again, |
39 |
|
40 |
Alex |
41 |
|
42 |
> |
43 |
>-- |
44 |
>gentoo-hardened@g.o mailing list |
45 |
> |
46 |
> |
47 |
> |
48 |
|
49 |
|
50 |
-- |
51 |
gentoo-hardened@g.o mailing list |