[llvm] [llvm-symbolizer] restore --[no-]use-symbol-table option (PR #71008)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 2 11:20:26 PDT 2023


MaskRay wrote:

The loadable kernel module files (.ko) are relocatable object files. Most functions have `st_value==0`. I am curious about the use case. DWARF needs relocating as well, but I haven't studied enough examples to tell how well it works.

If the .ko files are compiled with -ffunction-sections (not popular as `CONFIG_LD_DEAD_CODE_DATA_ELIMINATION` is off by default, and I think there is a lot of work to do), I suspect that both .symtab/DWARF will not work for the majority of cases.

https://github.com/llvm/llvm-project/pull/71008


More information about the llvm-commits mailing list