1 |
I am trying to build klibc in an hardened environment. The ssp causes |
2 |
some problems. I wonder how I can turn off the ssp while compiling |
3 |
klibc? I have tried USE="-hardened" CFLAGS="-fnostack-protector" but it |
4 |
looks like the -fno-stackprotector option never is used. What can I do |
5 |
to compile klibc in my hardened environment? Turning off SSP is ok. It |
6 |
will only be used for initramfs anyway. |
7 |
|
8 |
Here are som output: |
9 |
recv.o(.text+0x14): In function `recv': |
10 |
/var/tmp/portage/klibc-1.0.14/work/klibc-1.0.14/klibc/recv.c:9: |
11 |
undefined reference to `__guard' |
12 |
recv.o(.text+0x41):/var/tmp/portage/klibc-1.0.14/work/klibc-1.0.14/klibc/recv.c:11: |
13 |
undefined reference to `__stack_smash_handler' |
14 |
libgcc/__divdi3.o(.text+0x17): In function `__divdi3': |
15 |
libgcc/__divdi3.c:11: undefined reference to `__guard' |
16 |
libgcc/__divdi3.o(.text+0x7f):libgcc/__divdi3.c:29: undefined reference |
17 |
to `__stack_smash_handler' |
18 |
libgcc/__moddi3.o(.text+0x17): In function `__moddi3': |
19 |
libgcc/__moddi3.c:11: undefined reference to `__guard' |
20 |
libgcc/__moddi3.o(.text+0x90):libgcc/__moddi3.c:29: undefined reference |
21 |
to `__stack_smash_handler' |
22 |
libgcc/__udivdi3.o(.text+0x13): In function `__udivdi3': |
23 |
libgcc/__udivdi3.c:11: undefined reference to `__guard' |
24 |
libgcc/__udivdi3.o(.text+0x3f):libgcc/__udivdi3.c:13: undefined |
25 |
reference to `__stack_smash_handler' |
26 |
libgcc/__umoddi3.o(.text+0x13): In function `__umoddi3': |
27 |
libgcc/__umoddi3.c:11: undefined reference to `__guard' |
28 |
libgcc/__umoddi3.o(.text+0x4b):libgcc/__umoddi3.c:16: undefined |
29 |
reference to `__stack_smash_handler' |
30 |
libgcc/__udivmoddi4.o(.text+0x1d): In function `__udivmoddi4': |
31 |
libgcc/__udivmoddi4.c:5: undefined reference to `__guard' |
32 |
libgcc/__udivmoddi4.o(.text+0xda):libgcc/__udivmoddi4.c:32: undefined |
33 |
reference to `__stack_smash_handler' |
34 |
make[1]: *** [libc.so] Error 1 |
35 |
rm tests/microhello.o tests/malloctest.o tests/stat.o tests/statfs.o |
36 |
tests/fcntl.o tests/strtoimax.o tests/setenvtest.o tests/idtest.o |
37 |
tests/opentest.o tests/strlcpycat.o tests/malloctest2.o |
38 |
tests/minihello.o tests/hello.o tests/setjmptest.o tests/nfs_no_rpc.o |
39 |
tests/rtsig.o tests/memstrtest.o tests/strtotime.o tests/getopttest.o |
40 |
tests/sigint.o tests/getpagesize.o tests/environ.o tests/mmaptest.o |
41 |
tests/testrand48.o |
42 |
make[1]: Leaving directory |
43 |
`/var/tmp/portage/klibc-1.0.14/work/klibc-1.0.14/klibc' |
44 |
make: *** [all] Error 2 |
45 |
|
46 |
-- |
47 |
Natanael Copa |
48 |
|
49 |
|
50 |
-- |
51 |
gentoo-embedded@g.o mailing list |