[Lldb-commits] [lldb] [lldb][Mach-O] Don't read symbol table of specially marked binary (PR #129967)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Mon Mar 10 04:44:41 PDT 2025


labath wrote:

>  I create the specially named section by compiling an assembly file that puts a byte in the section which makes for a bit of a messy Makefile

You probably don't need an asm file for that. There are at least [two ways](https://godbolt.org/z/4sTrdrT49) to generate a random section from C:
```
asm(R"(.section ".text.foo"; .byte 0)");

void  __attribute__((section(".text.bar"))) f(){}
```

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


More information about the lldb-commits mailing list