diff options
author | Kees Cook <[email protected]> | 2021-06-18 10:57:38 -0700 |
---|---|---|
committer | Kees Cook <[email protected]> | 2021-09-25 08:20:49 -0700 |
commit | cfecea6ead5f15880fc1fb31fc655f8be5cf7424 (patch) | |
tree | 331af507e9084ca106a9a225aa3b166bde9605a9 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | c80d92fbb67b2c80b8eeb8759ee79d676eb33520 (diff) |
lib/string: Move helper functions out of string.c
The core functions of string.c are those that may be implemented by
per-architecture functions, or overloaded by FORTIFY_SOURCE. As a
result, it needs to be built with __NO_FORTIFY. Without this, macros
will collide with function declarations. This was accidentally working
due to -ffreestanding (on some architectures). Make this deterministic
by explicitly setting __NO_FORTIFY and move all the helper functions
into string_helpers.c so that they gain the fortification coverage they
had been missing.
Cc: Andrew Morton <[email protected]>
Cc: Nick Desaulniers <[email protected]>
Cc: Andy Lavr <[email protected]>
Cc: Nathan Chancellor <[email protected]>
Cc: Alexey Dobriyan <[email protected]>
Cc: Stephen Rothwell <[email protected]>
Cc: Bartosz Golaszewski <[email protected]>
Acked-by: Andy Shevchenko <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions