RFR: 8295795: hsdis does not build with binutils 2.39+ [v3]

Robbin Ehn rehn at openjdk.org
Mon Sep 25 12:04:19 UTC 2023


On Mon, 25 Sep 2023 09:41:13 GMT, Andrew Haley <aph at openjdk.org> wrote:

> Maybe, but would it really be easier? I don't see that it would be _significantly_ easier, and it would be much more riscv community friendly to work on the shared disassembler.

The build would be easier, no deps at all and could be shipped as part of the release since we control license. (license not an issue with capstone) And testing as mentioned.
The question if a third shared disassembler worth it, considering the relative small community.
I raised the Q, let's wait a bit and see...

Just want to mention that RV _can_ have same OP code for multiple instructions (vendor specific), binutils and llvm have the infrastructure to handle this, a quick peek at capstone made me think this might be an issue.
Thus task may not be as trivial 'add missing' instructions.
https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=include/opcode/riscv-opc.h;h=2a26c45f0c24c66937cb405f3a6d3b5c0b70acbb;hb=HEAD#l2323

-------------

PR Comment: https://git.openjdk.org/jdk/pull/15138#issuecomment-1733529436


More information about the build-dev mailing list