Re: a question on an error of building 2.6.24.2



On Feb 15, 4:35 pm, jyliu.li...@xxxxxxxxx wrote:
Hi there,

I am using a cross-compiler gcc 4.1.2 and glibc 2.3.6 to build
2.6.24.2 for an adder875 board. At the end of building, the ld gives
the following error messages:

LD init/built-in.o
LD vmlinux
`.exit.data' referenced in section `.exit.text' of drivers/built-in.o:
defined in discarded section `.exit.data' of drivers/built-in.o
`.exit.data' referenced in section `.exit.text' of drivers/built-in.o:
defined in discarded section `.exit.data' of drivers/built-in.o
`.exit.data' referenced in section `.exit.text' of drivers/built-in.o:
defined in discarded section `.exit.data' of drivers/built-in.o
`.exit.data' referenced in section `.exit.text' of drivers/built-in.o:
defined in discarded section `.exit.data' of drivers/built-in.o
make: *** [vmlinux] Error 1

Is it gcc problem, or something else?

Thanks.

Jingyu

Did u do a "make mrproper" before u do the make?

Ok the proper sequence:

move the .config to a tmp directory.
make mrproper (which will delete .config if u did not move it away)
then make menuconfig (or oldconfig, or allyesconfig etc...depends on
you)...and finally make.
.



Relevant Pages