diff options
| author | Masahiro Yamada <[email protected]> | 2020-12-02 13:49:29 +0000 |
|---|---|---|
| committer | Kees Cook <[email protected]> | 2020-12-04 22:09:41 +0000 |
| commit | af2d22254e8ee4558d3803372735c0b4f6046cd2 (patch) | |
| tree | b9644c9f4aaf14ec391b781fa37555800145986a /scripts/gcc-plugins/randomize_layout_plugin.c | |
| parent | Linux 5.10-rc6 (diff) | |
| download | kernel-af2d22254e8ee4558d3803372735c0b4f6046cd2.tar.gz kernel-af2d22254e8ee4558d3803372735c0b4f6046cd2.zip | |
gcc-plugins: remove code for GCC versions older than 4.9
Documentation/process/changes.rst says the minimal GCC version is 4.9.
Hence, BUILDING_GCC_VERSION is greater than or equal to 4009.
Signed-off-by: Masahiro Yamada <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
| -rw-r--r-- | scripts/gcc-plugins/randomize_layout_plugin.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/scripts/gcc-plugins/randomize_layout_plugin.c b/scripts/gcc-plugins/randomize_layout_plugin.c index bd29e4e7a524..334741a31d0a 100644 --- a/scripts/gcc-plugins/randomize_layout_plugin.c +++ b/scripts/gcc-plugins/randomize_layout_plugin.c @@ -590,16 +590,12 @@ static void register_attributes(void *event_data, void *data) randomize_layout_attr.name = "randomize_layout"; randomize_layout_attr.type_required = true; randomize_layout_attr.handler = handle_randomize_layout_attr; -#if BUILDING_GCC_VERSION >= 4007 randomize_layout_attr.affects_type_identity = true; -#endif no_randomize_layout_attr.name = "no_randomize_layout"; no_randomize_layout_attr.type_required = true; no_randomize_layout_attr.handler = handle_randomize_layout_attr; -#if BUILDING_GCC_VERSION >= 4007 no_randomize_layout_attr.affects_type_identity = true; -#endif randomize_considered_attr.name = "randomize_considered"; randomize_considered_attr.type_required = true; |
