[clang] [llvm] [MC] Emit a jump table size section (PR #101962)

Nabeel Omer via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 8 02:51:16 PDT 2024


omern1 wrote:

> The `.debug_` prefix is for DEARF content, is this being proposed to the DWARF standard?

No, this isn't being proposed for the DWARF standard. Though, searching through the DWARF standard I couldn't find anywhere saying that the `.debug_` section name prefix is reserved for DWARF information. Similarly the SysV ABI and the ELF spec don't seem to say anything like that either. I suspect this might be a namespacing convention rather than a requirement.

I feel like there's a case for this prefix as GNU `strip` doesn't seem to strip sections with the `.llvm_` prefix and we don't people to accidentally ship binaries with this section in them.

Also, the choice of `.debug_llvm_` is specifically to avoid clashes with DWARF sections.


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


More information about the llvm-commits mailing list