Just landed prelim support for DWARF debugging info in @ziglang’s stage2 Mach-O linker. The cool thing is, due to its incremental linking requirements, Zig generates dSYM bundle out-of-the-box!
I’m currently in the process of adding DWARF support to @ziglang’s Mach-O linker and I’m happy to say been learning tons from really well-written implementation of @golang’s linker!
TIL you can have multiple __TEXT segments and they don't even have to follow one another. In the pic, first __TEXT contains header/load commands, followed by __DATA, followed by __TEXT with __text section. I might burn in hell for this, but I'm so using this fact in @ziglang.