OpenCloudOS-Kernel/tools/include/nolibc
Willy Tarreau 8d304a3740 tools/nolibc/string: export memset() and memmove()
"clang -Os" and "gcc -Ofast" without -ffreestanding may ignore memset()
and memmove(), hoping to provide their builtin equivalents, and finally
not find them. Thus we must export these functions for these rare cases.
Note that as they're set in their own sections, they will be eliminated
by the linker if not used. In addition, they do not prevent gcc from
identifying them and replacing them with the shorter "rep movsb" or
"rep stosb" when relevant.

Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
2022-04-20 17:05:45 -07:00
..
arch-aarch64.h tools/nolibc/arch: mark the _start symbol as weak 2022-04-20 17:05:45 -07:00
arch-arm.h tools/nolibc/arch: mark the _start symbol as weak 2022-04-20 17:05:45 -07:00
arch-i386.h tools/nolibc/arch: mark the _start symbol as weak 2022-04-20 17:05:45 -07:00
arch-mips.h tools/nolibc/arch: mark the _start symbol as weak 2022-04-20 17:05:45 -07:00
arch-riscv.h tools/nolibc/arch: mark the _start symbol as weak 2022-04-20 17:05:45 -07:00
arch-x86_64.h tools/nolibc/arch: mark the _start symbol as weak 2022-04-20 17:05:45 -07:00
arch.h tools/nolibc/arch: split arch-specific code into individual files 2022-04-20 17:05:43 -07:00
ctype.h tools/nolibc/ctype: add the missing is* functions 2022-04-20 17:05:43 -07:00
nolibc.h tools/nolibc/stdio: add a minimal set of stdio functions 2022-04-20 17:05:44 -07:00
std.h tools/nolibc/std: move the standard type definitions to std.h 2022-04-20 17:05:33 -07:00
stdio.h tools/nolibc/stdio: add perror() to report the errno value 2022-04-20 17:05:44 -07:00
stdlib.h tools/nolibc: move exported functions to their own section 2022-04-20 17:05:45 -07:00
string.h tools/nolibc/string: export memset() and memmove() 2022-04-20 17:05:45 -07:00
sys.h tools/nolibc/sys: make getpgrp(), getpid(), gettid() not set errno 2022-04-20 17:05:44 -07:00
types.h tools/nolibc/types: define PATH_MAX and MAXPATHLEN 2022-04-20 17:05:45 -07:00