// SPDX-License-Identifier: GPL-2.0 /* * arch/arm/boot/compressed/string.c * * Small subset of simple string routines
*/
#define __NO_FORTIFY #include <linux/string.h>
/* * The decompressor is built without KASan but uses the same redirects as the * rest of the kernel when CONFIG_KASAN is enabled, defining e.g. memcpy() * to __memcpy() but since we are not linking with the main kernel string * library in the decompressor, that will lead to link failures. * * Undefine KASan's versions, define the wrapped functions and alias them to * the right names so that when e.g. __memcpy() appear in the code, it will * still be linked to this local version of memcpy().
*/ #ifdef CONFIG_KASAN #undef memcpy #undef memmove #undef memset void *__memcpy(void *__dest, __constvoid *__src, size_t __n) __alias(memcpy); void *__memmove(void *__dest, __constvoid *__src, size_t count) __alias(memmove); void *__memset(void *s, int c, size_t count) __alias(memset); #endif
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.