diff options
| author | Arnd Bergmann <[email protected]> | 2021-02-25 14:34:49 +0000 |
|---|---|---|
| committer | Masahiro Yamada <[email protected]> | 2021-02-27 06:44:02 +0000 |
| commit | da83616bcd3fa84233f6e37e2cf8cbfa979c6927 (patch) | |
| tree | 08b8cd6d8a901e22569721d06747177bd86c1719 /scripts/gcc-plugins/structleak_plugin.c | |
| parent | Merge tag 'docs-5.12-2' of git://git.lwn.net/linux (diff) | |
| download | kernel-da83616bcd3fa84233f6e37e2cf8cbfa979c6927.tar.gz kernel-da83616bcd3fa84233f6e37e2cf8cbfa979c6927.zip | |
kbuild: lto: add _mcount to list of used symbols
Some randconfig builds fail with undefined references to _mcount
when CONFIG_TRIM_UNUSED_KSYMS is set:
ERROR: modpost: "_mcount" [drivers/tee/optee/optee.ko] undefined!
ERROR: modpost: "_mcount" [drivers/fsi/fsi-occ.ko] undefined!
ERROR: modpost: "_mcount" [drivers/fpga/dfl-pci.ko] undefined!
Since there is already a list of symbols that get generated at link
time, add this one as well.
Fixes: fbe078d397b4 ("kbuild: lto: add a default list of used symbols")
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/structleak_plugin.c')
0 files changed, 0 insertions, 0 deletions
