This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Undefined references to 'memcpy' when compiling Linux Kernel
- To: gandalf at winds dot org (Byron Stanoszek)
- Subject: Re: Undefined references to 'memcpy' when compiling Linux Kernel
- From: Alan Cox <alan at lxorguk dot ukuu dot org dot uk>
- Date: Fri, 16 Jun 2000 16:22:04 +0100 (BST)
- Cc: gcc at gcc dot gnu dot org, linux-kernel at vger dot rutgers dot edu
> Instead, the code resulting for these functions is a 'call memcpy', a
> function that doesn't exist in the kernel. A -fbuiltin-functions or -O3 does
> not seem to solve the problem.
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.
> /* Install the file handle in the dentry */
> *((struct nfs_fh *) dentry->d_fsdata) = *fhandle;
Make that a memcpy
Alan