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.
Showing the changes to scripts (1 of 1 file). Show all
Unified · Split
| @@ -1,5 +1,6 @@ | ||
| 1 | 1 | memcpy |
| 2 | 2 | memmove |
| 3 | 3 | memset |
| 4 | +_mcount | |
| 4 | 5 | __stack_chk_fail |
| 5 | 6 | __stack_chk_guard |