1 |
On Thu, 22 Sep 2005, Natanael Copa wrote: |
2 |
|
3 |
> I upgraded to gcc-3.3.6 today and when recompiling the drivers (kernel |
4 |
> modules in the portage tree) I got some warnings and the modules fails |
5 |
> to load: |
6 |
> |
7 |
> * Updating module dependencies for 2.6.11-hardened-r15 ... |
8 |
> WARNING: //lib/modules/2.6.11-hardened-r15/fs/fuse.ko needs unknown |
9 |
> symbol __sta ck_smash_handler |
10 |
> WARNING: //lib/modules/2.6.11-hardened-r15/fs/fuse.ko needs unknown |
11 |
> symbol __gua rd |
12 |
> WARNING: //lib/modules/2.6.11-hardened-r15/net/wireless/ipw2200.ko needs |
13 |
> unknown symbol __stack_smash_handler |
14 |
> WARNING: //lib/modules/2.6.11-hardened-r15/net/wireless/ipw2200.ko needs |
15 |
> unknown symbol __guard |
16 |
> WARNING: |
17 |
> //lib/modules/2.6.11-hardened-r15/net/ieee80211/ieee80211_crypt_tkip.ko |
18 |
> needs unknown symbol __stack_smash_handler |
19 |
> WARNING: |
20 |
> //lib/modules/2.6.11-hardened-r15/net/ieee80211/ieee80211_crypt_wep.ko |
21 |
> needs unknown symbol __stack_smash_handler |
22 |
> WARNING: //lib/modules/2.6.11-hardened-r15/net/ieee80211/ieee80211.ko |
23 |
> needs unkn own symbol __stack_smash_handler |
24 |
> WARNING: |
25 |
> //lib/modules/2.6.11-hardened-r15/net/ieee80211_crypt_wep-r8180.ko need |
26 |
> s unknown symbol __stack_smash_handler |
27 |
> WARNING: |
28 |
> //lib/modules/2.6.11-hardened-r15/net/ieee80211_crypt_wep-r8180.ko need |
29 |
> s unknown symbol __guard |
30 |
> WARNING: //lib/modules/2.6.11-hardened-r15/net/ieee80211_crypt-r8180.ko |
31 |
> needs un known symbol __stack_smash_handler |
32 |
> WARNING: //lib/modules/2.6.11-hardened-r15/net/ieee80211_crypt-r8180.ko |
33 |
> needs un known symbol __guard |
34 |
> WARNING: //lib/modules/2.6.11-hardened-r15/net/ieee80211-r8180.ko needs |
35 |
> unknown symbol __stack_smash_handler |
36 |
> WARNING: //lib/modules/2.6.11-hardened-r15/net/ieee80211-r8180.ko needs |
37 |
> unknown symbol __guard |
38 |
> WARNING: //lib/modules/2.6.11-hardened-r15/net/r8180.ko needs unknown |
39 |
> symbol __s tack_smash_handler |
40 |
> WARNING: //lib/modules/2.6.11-hardened-r15/net/r8180.ko needs unknown |
41 |
> symbol __g uard |
42 |
> WARNING: //lib/modules/2.6.11-hardened-r15/net/rt2500.ko needs unknown |
43 |
> symbol __ stack_smash_handler |
44 |
> WARNING: //lib/modules/2.6.11-hardened-r15/net/rt2500.ko needs unknown |
45 |
> symbol __ guard |
46 |
> WARNING: //lib/modules/2.6.11-hardened-r15/net/ath_pci.ko needs unknown |
47 |
> symbol _ _stack_smash_handler |
48 |
> WARNING: //lib/modules/2.6.11-hardened-r15/net/ath_rate_onoe.ko needs |
49 |
> unknown sy mbol __stack_smash_handler |
50 |
> WARNING: //lib/modules/2.6.11-hardened-r15/net/ath_rate_amrr.ko needs |
51 |
> unknown sy mbol __stack_smash_handler |
52 |
> WARNING: //lib/modules/2.6.11-hardened-r15/net/wlan_xauth.ko needs |
53 |
> unknown symbo l __stack_smash_handler |
54 |
> WARNING: //lib/modules/2.6.11-hardened-r15/net/wlan_wep.ko needs unknown |
55 |
> symbol __stack_smash_handler |
56 |
> WARNING: //lib/modules/2.6.11-hardened-r15/net/wlan_tkip.ko needs |
57 |
> unknown symbol __stack_smash_handler |
58 |
> WARNING: //lib/modules/2.6.11-hardened-r15/net/wlan.ko needs unknown |
59 |
> symbol __st ack_smash_handler |
60 |
> WARNING: //lib/modules/2.6.11-hardened-r15/net/ath_hal.ko needs unknown |
61 |
> symbol _ _stack_smash_handler |
62 |
> WARNING: //lib/modules/2.6.11-hardened-r15/usb/video/spca5xx.ko needs |
63 |
> unknown sy mbol __stack_smash_handler |
64 |
> WARNING: //lib/modules/2.6.11-hardened-r15/usb/video/spca5xx.ko needs |
65 |
> unknown sy mbol |
66 |
> __guard [ ok ] |
67 |
> * Adding module to moduledb. |
68 |
> >>> Regenerating /etc/ld.so.cache... |
69 |
> >>> sys-fs/fuse-2.3.0 merged. |
70 |
> |
71 |
> So I guess there is something wrong with my gcc upgrade. I guess I need |
72 |
> to do a proper toolchain upgrade? |
73 |
|
74 |
no, your module build process (Makefiles) does not add -D__KERNEL__ to the |
75 |
build, so ssp will be enabled on the built modules (not supported by any |
76 |
gentoo kernel). |
77 |
Nothing in the kernel and module build process is allowed to enable |
78 |
-fstack-protector (either by CFLAGS or any other method) |
79 |
Rebuild one of the above modules and paste your compiler line. |
80 |
|
81 |
Peter |
82 |
|
83 |
> I have already compiled those (in specified order): |
84 |
> gcc (3.3.5 -> 3.3.6) uclibc binutils |
85 |
> |
86 |
> But it still fails to find the SSP symbols. |
87 |
> What can I do to fix it? Do I have to recompile the world? (like |
88 |
> described in http://www.gentoo.org/doc/en/new-upgrade-to-gentoo-1.4.xml) |
89 |
> |
90 |
> Are there any shortcuts? |
91 |
> |
92 |
> |
93 |
> # gcc-config -l |
94 |
> [1] i386-gentoo-linux-uclibc-3.3.5-20050130-hardened |
95 |
> [2] i386-gentoo-linux-uclibc-3.3.6 * |
96 |
> [3] i386-gentoo-linux-uclibc-3.3.6-hardenednopie |
97 |
> [4] i386-gentoo-linux-uclibc-3.3.6-hardenednopiessp |
98 |
> [5] i386-gentoo-linux-uclibc-3.3.6-hardenednossp |
99 |
> [6] i386-gentoo-linux-uclibc-3.3.6-vanilla |
100 |
> |
101 |
> |
102 |
> -- |
103 |
> Natanael Copa |
104 |
> |
105 |
> |
106 |
|
107 |
-- |
108 |
Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2 |
109 |
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2 |
110 |
|
111 |
-- |
112 |
gentoo-embedded@g.o mailing list |