diff options
| author | Siddharth Nayyar <sidnayyar@google.com> | 2026-03-27 00:25:05 +0300 |
|---|---|---|
| committer | Sami Tolvanen <samitolvanen@google.com> | 2026-04-01 02:42:52 +0300 |
| commit | 55fcb926b6d8b5cfb40873e4840a69961db1bb69 (patch) | |
| tree | 00f3d9a5933ff22e101ff492cd6caba0a0de2b49 /include/linux/module.h | |
| parent | 16d0e04f546ffba78c74bbfeb57d93147bcaf2c5 (diff) | |
| download | linux-55fcb926b6d8b5cfb40873e4840a69961db1bb69.tar.xz | |
module: use kflagstab instead of *_gpl sections
Read kflagstab section for vmlinux and modules to determine whether
kernel symbols are GPL only.
This patch eliminates the need for fragmenting the ksymtab for infering
the value of GPL-only symbol flag, henceforth stop populating *_gpl
versions of the ksymtab and kcrctab in modpost.
Signed-off-by: Siddharth Nayyar <sidnayyar@google.com>
Reviewed-by: Petr Pavlu <petr.pavlu@suse.com>
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Diffstat (limited to 'include/linux/module.h')
| -rw-r--r-- | include/linux/module.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index 60ed1c3e0ed9..917b29332e15 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -419,6 +419,7 @@ struct module { /* Exported symbols */ const struct kernel_symbol *syms; const u32 *crcs; + const u8 *flagstab; unsigned int num_syms; #ifdef CONFIG_ARCH_USES_CFI_TRAPS |
