X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=platform%2Flinux%2Fhost_dasm.c;h=d2d6d0a9bf4b6252fdc085ea59b5686d9b041d59;hb=8796b7ee88b83c54bd09c0087e023dfac5df3e08;hp=91ea4da8e778bec816d2cfc1a28e5a4056590db9;hpb=553c3eaa3a4bda6ba99d925ecab518fe82530cd6;p=picodrive.git diff --git a/platform/linux/host_dasm.c b/platform/linux/host_dasm.c index 91ea4da..d2d6d0a 100644 --- a/platform/linux/host_dasm.c +++ b/platform/linux/host_dasm.c @@ -144,6 +144,7 @@ static int insn_printf(void *f, const char *format, ...) static void host_dasm_init(void) { + bfd_init(); slurp_symtab(g_argv[0]); init_disassemble_info(&di, NULL, insn_printf); @@ -170,7 +171,7 @@ void host_dasm(void *addr, int len) vma_end = vma + len; while (vma < vma_end) { - printf(" %p ", (void *)(long)vma); + printf(" %p ", (void *)(long)vma); vma += print_insn_func(vma, &di); printf("\n"); }