Update tested result. I've successfully tested for the following environment,
- Kernel Source: android-goldfish-2.6.29 - NDK: r6 - GCC: arm-linux-androideabi-4.4.3 with the the compilation method stated below. - kernel: compiled as usual (It seems adding -fno-pic for kernel build will cause the booting to be stopped.) - module: add "EXTRA_CFLAGS=-fno-pic" during external module build. Conclusion: only need to add -fno-pic for external module build. On Jul 15, 9:22 am, Bruce Beare <bbea...@gmail.com> wrote: > Try adding -fno-pic to the gcc flags for the kernel build. > > On Jul 14, 2:16 pm, "Sven Killig" <s...@killig.de> wrote: > > > > > > > > > > -----Original Message----- > > > From: android-kernel@googlegroups.com [mailto:android- > > > ker...@googlegroups.com] On Behalf Of Alessio Bianchi > > > Sent: Wednesday, January 26, 2011 3:48 PM > > > To: android-kernel@googlegroups.com > > > Subject: Re: [android-kernel] NDK Toolchain and "Unknown symbol > > > _GLOBAL_OFFSET_TABLE_" in kernel module > > > > On 26/gen/2011, at 12.39, Steven Coutts wrote: > > > > > On Tuesday 25 Jan 2011 21:50:32 Alessio Bianchi wrote: > > > >> Hi, I used the NDK toolchain (arm-linux-androideabi-*) to build a > > > >> custom > > > >> kernel for the Nexus One. The kernel compiled and works perfectly on > > > >> the > > > >> device, but when I try to insert the bcm4329 kernel module for the > > > >> wireless interface, I get the following error in dmesg: > > > > >> bcm4329: Unknown symbol _GLOBAL_OFFSET_TABLE_ > > > > > I get the same thing, 'arm-eabi-4.4.0/bin/arm-eabi-' seems to work fine > > > > though. > > > > Confirmed. Additionally, I'm getting this issue with external modules too. > > > I also have this problem with > > CROSS_COMPILE=/android-ndk-r6/toolchains/arm-linux-androideabi-4.4.3/prebui > > lt/linux-x86/bin/arm-linux-androideabi- > > And 4.4.0 was removed because it was deprecated. > > Has anyone found a solution? -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel