[cfe-dev] FreeBSD kernel - linking

Mike Stump mrs at apple.com
Thu Feb 12 10:46:59 PST 2009


On Feb 12, 2009, at 10:28 AM, Daniel Dunbar wrote:
> On Thu, Feb 12, 2009 at 7:29 AM, Roman Divacky  
> <rdivacky at freebsd.org> wrote:
>> 1) clang is forcing many .o to use "memmove" which is not defined
>> for kernel (kernel does not link with libc). I believe it might
>> be for static initalization of structure or something
>>
>> can this be avoided/altered?
>
> Yes. Please file a bug for this issue; I'm not exactly sure how to
> deal with this.

The canonical ways would be:

-mkernel, -ffreestanding, -fhosted, -fno-builtin-memmove -fno-builtin...



More information about the cfe-dev mailing list