This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: need a clue to build my linux kernel


Jason Chen wrote:
> I am a newer.
> when i build the linux kernel with my cross toolchain,there was a error near finish like this:
> ...
> arch/arm/mach-s3c2410/s3c2410.o(__ksymtab+0xb8): undefined reference to `local symbols in discarded
> section .text.exit\'
> make: *** [vmlinux] Error 1
> 
> there is no error like this when build with other cross toolchain,what's wrong with my toolchain?
> I just need a clue! ...      
> my cross toolchain use:
> binutils-2.14
> gcc-core-2.95.3
> glibc-2.2.4
> glibc-linuxthreads-2.2.4
> 
> linux version is 2.4.18

GIYF (Google is your friend):
http://sources.redhat.com/ml/binutils/2002-01/msg00071.html
http://www.linux-mips.org/archives/linux-mips/2002-01/msg00390.html
"It's a kernel bug exposed by recent binutils.  You can either fix the
kernel by making the references weak, or hack around the problem by
adding -fnoinhibit-exec (or is that --noinhibit-exec?) to the ld command line."

So you could also work around it by using an older binutils, maybe.
- Dan

-- 
My technical stuff: http://kegel.com
My politics: see http://www.misleader.org for examples of why I'm for regime change

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]