diff options
| author | Nicolas Pitre <[email protected]> | 2016-12-02 20:11:50 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2016-12-02 22:46:42 +0000 |
| commit | 865563924022d8a307ee6dbc6a9ab4fb4d461cce (patch) | |
| tree | a0e678342d63d30860f81776d4ebe50e6ac51500 /scripts/gcc-plugins/sancov_plugin.c | |
| parent | Merge tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/... (diff) | |
| download | kernel-865563924022d8a307ee6dbc6a9ab4fb4d461cce.tar.gz kernel-865563924022d8a307ee6dbc6a9ab4fb4d461cce.zip | |
kbuild: fix building bzImage with CONFIG_TRIM_UNUSED_KSYMS enabled
When building a specific target such as bzImage, modules aren't normally
built. However if CONFIG_TRIM_UNUSED_KSYMS is enabled, no built modules
means none of the exported symbols are used and therefore they will all
be trimmed away from the final kernel. A subsequent "make modules" will
fail because modpost cannot find the needed symbols for those modules in
the kernel binary.
Let's make sure modules are also built whenever CONFIG_TRIM_UNUSED_KSYMS
is enabled and that the kernel binary is properly rebuilt accordingly.
Signed-off-by: Nicolas Pitre <[email protected]>
Tested-by: Jarod Wilson <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions
