[PATCH 06/15] cdefs.h: Add clang fortify directives
Joseph Myers
joseph@codesourcery.com
Thu Dec 21 21:33:34 GMT 2023
On Thu, 21 Dec 2023, Adhemerval Zanella wrote:
> +# define __fortify_function_error_function static __attribute__((unused))
> +# define __fortify_clang_pass_object_size_n(n) \
> + __attribute__ ((pass_object_size (n)))
> +# define __fortify_clang_pass_dynamic_object_size_n(n) \
> + __attribute__ ((pass_dynamic_object_size (n)))
I'd expect these to use implementation-namespace macro names __unused__,
__pass_object_size__, __pass_dynamic_object_size__; _FORTIFY_SOURCE
shouldn't use extra names from the user's namespace, regardless of what
compiler is used.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list