Date: Wed, 21 Jan 2009 20:07:30 -0500 From: Alexander Kabaev <kabaev@gmail.com> To: Andrew Brampton <brampton+freebsd-hackers@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Kernel Module - GCC Requires memmove Message-ID: <20090121200730.121e3e28@kan.dnsalias.net> In-Reply-To: <d41814900901211652y617be9afp253a9f1a002c537b@mail.gmail.com> References: <d41814900901210412h4a1aaec6l6945dd79d07d13be@mail.gmail.com> <4977B357.2080500@andric.com> <20090121185245.00739316@kan.dnsalias.net> <d41814900901211652y617be9afp253a9f1a002c537b@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/x87sEwRtdH4Y5Qwu25Wxzy0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Thu, 22 Jan 2009 00:52:13 +0000 Andrew Brampton <brampton+freebsd-hackers@gmail.com> wrote: > 2009/1/21 Alexander Kabaev <kabaev@gmail.com>: > > From GCC's info pages: > > > > Most of the compiler support routines used by GCC are present in > > `libgcc', but there are a few exceptions. GCC requires the > > freestanding environment provide `memcpy', `memmove', `memset' and > > `memcmp'. > > </end quote> > > > > We do not provide all necessary functions in kernel and mostly > > depend on luck for the kernel to link. Your luck apparently ran > > out :( > > >=20 > Thanks for the info, good thing I'm not a gambling man. Anyway I also > read that part of the GCC manual, so my next question is: If code can > be generated with those four functions, why are they not exported by > the kernel? Surely another kernel module will at some point also be > hit by this? >=20 > thanks > Andrew Very good question and the answer is simple: we do not export these functions because nobody needed them yet :) Historically we have grown these functions on an 'as needed' basis. I am sure the patch to add missing functions would get committed if it were made available. <hint> --=20 Alexander Kabaev --Sig_/x87sEwRtdH4Y5Qwu25Wxzy0 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iD8DBQFJd8bSQ6z1jMm+XZYRAqe8AJ9lbnx3zcxJ58dtMeqr8KF1THYpIACghpaO AaDOBgvg5O79LmHt3PrB7V4= =VVG0 -----END PGP SIGNATURE----- --Sig_/x87sEwRtdH4Y5Qwu25Wxzy0--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090121200730.121e3e28>
