1 |
Barry.SCHWARTZ@×××××××××××××.org wrote: |
2 |
> Daniel Iliev <danny@××××××××.com> skribis: |
3 |
> |
4 |
>> Unfortunately I am not a C programmer and I can't be sure about how |
5 |
>> exactly PIC and prelink work. |
6 |
>> As far as I understood the mechanism (please, correct me if I'm wrong) |
7 |
>> prelink scans the executables to find which libs they load. Then it |
8 |
>> makes cache and when a program is started it uses already pre-loaded |
9 |
>> libs. So the program is ready for action faster. |
10 |
>> |
11 |
> |
12 |
> What you are interested in, probably, is PIE: position-independent |
13 |
> executables. These look like shared libraries but are runnable |
14 |
> programs. These are easy to get using the version 3.4.x compiler and |
15 |
> ‘hardenednossp’ specs. I suspect you will have more fun and fewer |
16 |
> headaches by using the 4.1.x compiler and no prelink. There are |
17 |
> already enough extra headaches in amd64 Gentoo, compared to x86 |
18 |
> Gentoo! :) |
19 |
> |
20 |
> |
21 |
Yep! gcc -v says: Target: x86_64-pc-linux-gnu.....gcc version 4.1.1 |
22 |
(Gentoo 4.1.1) |
23 |
|
24 |
Are you proposing me to put -fpie in the CFLAGS? |
25 |
|
26 |
-- |
27 |
Best regards, |
28 |
Daniel |
29 |
|
30 |
|
31 |
-- |
32 |
gentoo-amd64@g.o mailing list |