diff options
| author | Dmitry Torokhov <[email protected]> | 2023-05-01 15:20:08 -0700 | 
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2023-05-01 15:20:08 -0700 | 
| commit | 9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e (patch) | |
| tree | d57f3a63479a07b4e0cece029886e76e04feb984 /tools/include/nolibc/string.h | |
| parent | 5dc63e56a9cf8df0b59c234a505a1653f1bdf885 (diff) | |
| parent | 53bea86b5712c7491bb3dae12e271666df0a308c (diff) | |
Merge branch 'next' into for-linus
Prepare input updates for 6.4 merge window.
Diffstat (limited to 'tools/include/nolibc/string.h')
| -rw-r--r-- | tools/include/nolibc/string.h | 8 | 
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/include/nolibc/string.h b/tools/include/nolibc/string.h index ad97c0d522b8..fffdaf6ff467 100644 --- a/tools/include/nolibc/string.h +++ b/tools/include/nolibc/string.h @@ -88,8 +88,11 @@ void *memset(void *dst, int b, size_t len)  {  	char *p = dst; -	while (len--) +	while (len--) { +		/* prevent gcc from recognizing memset() here */ +		asm volatile("");  		*(p++) = b; +	}  	return dst;  } @@ -285,4 +288,7 @@ char *strrchr(const char *s, int c)  	return (char *)ret;  } +/* make sure to include all global symbols */ +#include "nolibc.h" +  #endif /* _NOLIBC_STRING_H */  |