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

Nabeel Omer via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 12 03:10:21 PDT 2024


omern1 wrote:

> Conventionally, .debug_* sections are reserved for DWARF, even without official standards.
GNU strip's default behavior --strip-all, emulated by llvm-objcopy's --strip-all-gnu option, is roughly to remove non-SHF_ALLOC sections that are not debug.
> The .llvm prefix holds no special meaning.
>
> When designing new sections, we should not adapt to the --strip-all-gnu behavior.

Thanks, it appears that you're suggesting removing the `.debug_` bit from the name of the section, is that correct?

> Jump tables exhibit diverse structures. For instance, consider llvm/test/CodeGen/ARM/jump-table-tbh.ll and Mach-O's .data_region.

Jump tables of type `EK_Inline` aren't handled in ASM printer so I think they should be kept out of the scope of this patch. I'll look into the Macho-O data region stuff.


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


More information about the cfe-commits mailing list