[PATCH] newlib: undefine _FORTIFY_SOURCE
Keith Packard
keithp@keithp.com
Tue Nov 9 03:15:31 GMT 2021
Mike Frysinger <vapier@gentoo.org> writes:
> Since newlib isn't prepared to build itself with _FORTIFY_SOURCE, and
> it's not clear if it's even useful, disable it when building the code.
It is useful; I've caught a few library bugs when I turned this on for
picolibc. Fixing newlib to handle -D_FORTIFY_SOURCE could probably start
with the patches I did in picolibc, which mostly just #undef the various
mem and str functions before defining them.
General code:
https://github.com/picolibc/picolibc/commit/c2c593afa60b64bff0a958ad930e0336463db5bf
Arm specific code:
https://github.com/picolibc/picolibc/commit/b3946840fb3a677125bc9232ca93ea7533375188
--
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/newlib/attachments/20211108/cd60817c/attachment.sig>
More information about the Newlib
mailing list