[cfe-dev] FreeBSD kernel - linking
Chris Lattner
clattner at apple.com
Thu Feb 12 10:53:53 PST 2009
On Feb 12, 2009, at 10:46 AM, Mike Stump wrote:
> 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...
that won't help, clang generates these for structure copies.
-Chris
More information about the cfe-dev
mailing list