Re: [m68k] in modpost: "strlen" [iscsi_target_mod.ko] undefined!(and others)
From: Thorsten Glaser
Date: Sun Jan 01 2012 - 19:25:22 EST
Jonathan Nieder dixit:
>Makefile instead of arch/m68k/Makefile. If others agree, some patches
>for the x86 string functions to get the optimizations back could
>follow, leaving everyone happy.
[â]
> Even with -ffreestanding, it's still possilble to explicitely use a gcc
> builtin if desired.
Just call them, like this:
tg@zigo:~/Xl/linux-2.6-3.2~rc7 $ fgrep -A 3 "define strcpy" arch/m68k/include/asm/string.h
#define strcpy(d, s) (__builtin_constant_p(s) && \
__builtin_strlen(s) <= 32 ? \
__builtin_strcpy(d, s) : \
__kernel_strcpy(d, s))
Of course, the parameters when to call which may differ.
(The choice about being a hosted environment is not just
about having libc-like functions available.)
bye,
//mirabilos
--
Solange man keine schmutzigen Tricks macht, und ich meine *wirklich*
schmutzige Tricks, wie bei einer doppelt verketteten Liste beide
Pointer XORen und in nur einem Word speichern, funktioniert Boehm ganz
hervorragend. -- Andreas Bogk Ãber boehm-gc in d.a.s.r
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/