For Apple targets, my understanding is that debug infos are loaded from files which location is referenced by N_OSO symtab entries.
While this works fine on dev environments, the referenced transient .o may not exist in the future for various reasons (cache removed, binary is distributed or copied to another machine).
Would it make sense to support loading debug info from an adjacent .dSYM file if it exists?
This would allow users to generate a companion .dSYM adjacent to the binary.
See https://developer.apple.com/documentation/xcode/building-your-app-to-include-debugging-information
The generation of .dSYM would be the responsibility of the user, but support for reading .dSYM (if it exists) would be baked in zig.