Re: [PATCH] gcc-plugins: drop -std=gnu++11 to fix GCC 13 build

From: Kees Cook
Date: Thu Feb 02 2023 - 13:50:13 EST


On Wed, 1 Feb 2023 23:00:09 +0000, Sam James wrote:
> The latest GCC 13 snapshot (13.0.1 20230129) gives the following:
> ```
> cc1: error: cannot load plugin ./scripts/gcc-plugins/randomize_layout_plugin.so
> :./scripts/gcc-plugins/randomize_layout_plugin.so: undefined symbol: tree_code_type
> ```
>
> This ends up being because of https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=b0241ce6e37031
> upstream in GCC which changes the visibility of some types used by the kernel's
> plugin infrastructure like tree_code_type.
>
> [...]

Applied to for-next/hardening, thanks!

[1/1] gcc-plugins: drop -std=gnu++11 to fix GCC 13 build
https://git.kernel.org/kees/c/5a6b64adc18d

--
Kees Cook