fix Issue 13779 - gdb can't find frame base when using ld.gold

- missing relocation addend .debug_info reference to .debug_loc

- also did a tiny refactoring and added commented some code

[Issue 13779](https://issues.dlang.org/show_bug.cgi?id=13779 "gdb can't find frame base when using ld.gold")