]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
module: use kflagstab instead of *_gpl sections
authorSiddharth Nayyar <sidnayyar@google.com>
Thu, 26 Mar 2026 21:25:05 +0000 (21:25 +0000)
committerSami Tolvanen <samitolvanen@google.com>
Tue, 31 Mar 2026 23:42:52 +0000 (23:42 +0000)
commit55fcb926b6d8b5cfb40873e4840a69961db1bb69
tree00f3d9a5933ff22e101ff492cd6caba0a0de2b49
parent16d0e04f546ffba78c74bbfeb57d93147bcaf2c5
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>
include/linux/export-internal.h
include/linux/module.h
kernel/module/internal.h
kernel/module/main.c
scripts/mod/modpost.c