Date: Thu, 22 Jan 2009 00:52:13 +0000 From: Andrew Brampton <brampton+freebsd-hackers@gmail.com> To: Alexander Kabaev <kabaev@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Kernel Module - GCC Requires memmove Message-ID: <d41814900901211652y617be9afp253a9f1a002c537b@mail.gmail.com> In-Reply-To: <20090121185245.00739316@kan.dnsalias.net> References: <d41814900901210412h4a1aaec6l6945dd79d07d13be@mail.gmail.com> <4977B357.2080500@andric.com> <20090121185245.00739316@kan.dnsalias.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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 :( > 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? thanks Andrew
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d41814900901211652y617be9afp253a9f1a002c537b>