]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
gcc-plugins: Use dynamic initializers
authorKees Cook <keescook@chromium.org>
Tue, 6 Feb 2018 01:27:46 +0000 (17:27 -0800)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:45:20 +0000 (19:45 -0600)
commitecb7bc993ffd6ebfbc025631ada7381687cbb807
treea9a21ee68ae7fff19e0f0c1e5ca71d39b4d01136
parent163b1b03bf8a69229a394a298e25eb62b5c61593
gcc-plugins: Use dynamic initializers

BugLink: https://bugs.launchpad.net/bugs/1835972
commit b86729109c5fd0a480300f40608aac68764b5adf upstream.

GCC 8 changed the order of some fields and is very picky about ordering
in static initializers, so instead just move to dynamic initializers,
and drop the redundant already-zero field assignments.

Suggested-by: Valdis Kletnieks <valdis.kletnieks@vt.edu>
Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: Lance Albertson <lance@osuosl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
scripts/gcc-plugins/latent_entropy_plugin.c
scripts/gcc-plugins/randomize_layout_plugin.c
scripts/gcc-plugins/structleak_plugin.c