• Arnd Bergmann's avatar
    kbuild: lto: add _mcount to list of used symbols · da83616b
    Arnd Bergmann authored
    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: fbe078d3 ("kbuild: lto: add a default list of used symbols")
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
    da83616b
lto-used-symbollist.txt 65 Bytes