DT_MIPS_RLD_MAP being defined on mips targets with shared libs. Since netbsd's gdb config.h defines HAVE_LINK_H, link.h is expected to provide it. So #include <machine/elf_machdep.h> to make it so.