On Mon, 22 Mar 2021 16:44:38 -0700, Sean Christopherson wrote: > Merge module sections only when using Clang LTO. With gcc-10, merging > sections does not appear to update the symbol tables for the module, > e.g. 'readelf -s' shows the value that a symbol would have had, if > sections were not merged. > > The stale symbol table breaks gdb's function disassambler, and presumably > other things, e.g. > > [...] Applied to for-linus/lto, thanks! [1/1] kbuild: lto: Merge module sections if and only if CONFIG_LTO_CLANG is enabled https://git.kernel.org/kees/c/8b382ebc86a8 -- Kees Cook