On 23/10/20 22:06, Daniele Buono wrote:
> +
> +#ifdef CONFIG_CFI
> +/* If CFI is enabled, use an attribute to disable cfi-icall on the following
> + * function */
> +#define __disable_cfi__ __attribute__((no_sanitize("cfi-icall")))
> +#else
> +/* If CFI is not enabled, use an empty define to not change the behavior */
> +#define __disable_cfi__
> +#endif
> +
> diff --git a/plugins/core.c b/plugins/core.c

__disable_cfi__ is a reserved identifier, since it starts with two
underscores.  Please name it QEMU_DISABLE_CFI and put it in
include/qemu/compiler.h.

Thanks,

Paolo


Reply via email to