diff options
author | Ulrich Drepper <drepper@gmail.com> | 2019-09-06 23:49:54 +0200 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2019-09-06 23:49:54 +0200 |
commit | fcab4f6587528db731da3676decb3bedcf44c08d (patch) | |
tree | 1cb27502bfef12cdaeb9f2fbfebf8eb01218f84e /src | |
parent | c950e8a995dfee0b6094c9854581b103754c6bb6 (diff) |
Implement RISC-V disassembler
Diffstat (limited to 'src')
-rw-r--r-- | src/objdump.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/objdump.c b/src/objdump.c index 6b365d5c..a619674f 100644 --- a/src/objdump.c +++ b/src/objdump.c @@ -717,11 +717,13 @@ show_disasm (Ebl *ebl, const char *fname, uint32_t shstrndx) info.address_color = color_address; info.bytes_color = color_bytes; - if (asprintf (&fmt, "%s%%7m %s%%.1o,%s%%.2o,%s%%.3o%%34a %s%%l", + if (asprintf (&fmt, "%s%%7m %s%%.1o,%s%%.2o,%s%%.3o,,%s%%.4o%s%%.5o%%34a %s%%l", color_mnemonic ?: "", color_operand1 ?: "", color_operand2 ?: "", color_operand3 ?: "", + color_operand4 ?: "", + color_operand5 ?: "", color_label ?: "") < 0) error (EXIT_FAILURE, errno, _("cannot allocate memory")); } @@ -729,7 +731,7 @@ show_disasm (Ebl *ebl, const char *fname, uint32_t shstrndx) { info.address_color = info.bytes_color = NULL; - fmt = "%7m %.1o,%.2o,%.3o%34a %l"; + fmt = "%7m %.1o,%.2o,%.3o,%.4o,%.5o%34a %l"; } disasm_cb (ctx, &info.cur, info.cur + data->d_size, info.addr, |