RFR: 8295795: hsdis does not build with binutils 2.39+

Ludovic Henry luhenry at openjdk.org
Tue Feb 14 11:13:44 UTC 2023


On Fri, 21 Oct 2022 15:26:59 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> Fails like this:
> 
> 
> $ sh ./configure --with-boot-jdk=jdk19u-ea --with-hsdis=binutils --with-binutils-src=binutils-2.39
> $ make clean build-hsdis
> 
> === Output from failing command(s) repeated here ===
> * For target support_hsdis_hsdis-binutils.o:

I'd go with sacrificing backward compatibility for multiple reasons:
1. It's an internal tool mostly targeted at Hotspot contributors (does this assumption holds true in your experience?). Some documentation and communication on the mailing list would help in the transition
2. Despite being annoying to build and distribute, binutils is still a reference implementation for tooling and has a support for a wide range of platforms.

I haven't looked how much breaking this compatibility is going to impact other hsdis implementations though (as-in will it require a change of API in hotspot <-> hsdis as well as hsdis <-> binutils/llvm/capstone

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

PR: https://git.openjdk.org/jdk/pull/10817


More information about the hotspot-compiler-dev mailing list