Hullo there,
I've just been adding DWARF debugging information to the output of my BASIC compiler (x86-64, Linux). Everything was going well, however I've hit a problem. Local labels (dotted) and constants defined with equ make their way into the final executable. So when I ask the GNU debugger for a backtrace, I get lots of irrelevant information. (For example, each function has a little "helper" function that zeroes the stack, and some equs that record call frame information). The backtrace is thus quite confusing to read.
Is there anyway to make it so these symbols don't end up in the final binary - just the function names themselves?
Thanks.