Thanks for your response, already tried that, but -g does not work as expected.
As far as I can tell, it not supported, based on below;
If so, does anyone know when this will get fixed?
$ nasm -f macho -y
valid debug formats for 'macho' output format are ('*' denotes default):
* null Null debug format
2.1.26 The ?y Option: Display Available Debug Info Formats
Typing nasm ?f <option> ?y will display a list of the available debug info formats for the given output
format. The default format is indicated by an asterisk. For example:
nasm ?f elf ?y
valid debug formats for โelf32โ output format are (โ*โ denotes default): * stabs ELF32 (i386) stabs debug format for Linux
dwarf elf32 (i386) dwarf debug format for Linux