a question on an error of building 2.6.24.2 - Linux

This is a discussion on a question on an error of building 2.6.24.2 - Linux ; 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' ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: a question on an error of building 2.6.24.2

  1. a question on an error of building 2.6.24.2

    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

  2. Re: a question on an error of building 2.6.24.2

    On Feb 15, 4:35 pm, jyliu.li...@gmail.com 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.

+ Reply to Thread