Re: [patch] compile fixes

From: Andrew Morton (akpm@zip.com.au)
Date: Thu Feb 14 2002 - 05:01:37 EST


Adrian Bunk wrote:
>
> On Wed, 13 Feb 2002, Andrew Morton wrote:
>
> > This patch should fix all the remaining .text.exit problems
> > which have resulted from recent binutils changes. For all
> > files which are accessible to an x86 build.
> >...
>
> Thanks for your work, I tried to compile non-modular 2.4.18-pre9 with this
> patch and as much as possible enabled. The .text.exit errors are now gone
> with one exception:
>
> drivers/char/char.o(.data+0xacf4): undefined reference to `local symbols
> in discarded section .text.exit'
>

Well that's odd. Perhaps something is configured differently.
Please do this:

        make bzImage

Near the end of the build, see the line

        ld -m elf_i386 -T <lots of .o files> -o vmlinux

delete all the .o files which appear that command line.

Now, run

ld -m elf_i386 -T arch/i386/vmlinux.lds $(find . -name '*.o') 2> /tmp/1

Now, go through all the junk in /tmp/1 and search for the text "discarded".
It will mention a filename. That's the info we want.

Thanks.

-
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Feb 15 2002 - 21:01:00 EST