Re: Undefined references to 'memcpy' when compiling Linux Kernel

From: Tom Leete (tleete@mountain.net)
Date: Fri Jun 16 2000 - 18:20:03 EST


Richard Henderson wrote:
>
> On Fri, Jun 16, 2000 at 04:22:04PM +0100, Alan Cox wrote:
> > gcc assumes it is linked with libgcc. That isnt unreasonable but it breaks
> > on the kernel stuff. Turn the problem functions into using explicit memcpy
> > calls then mail me a diff. This is kernel over cleverness not gcc.
>
> Really memcpy ought to exist as a symbol in the kernel.
> We've done that since day one in the Alpha port and elsewhere.
>
[gcc trimmed from CC list -- not their baby]

By exporting it you take its address, which runs afoul of
inlining.

There are ways around that.

--Tom

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



This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:13 EST