Skip to content

Instantly share code, notes, and snippets.

@kay
Last active August 9, 2020 11:31
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kay/3c7acff64ca25d9ed236c7e793eecf25 to your computer and use it in GitHub Desktop.
Save kay/3c7acff64ca25d9ed236c7e793eecf25 to your computer and use it in GitHub Desktop.
Build HotSpot disassembler for JDK 11 and 12
# The following is based on a fresh Ubuntu 18.04.2 LTS with gcc, make and perl already
# installed (not that perl has anything to do with any of this..)
#
# This is based on JDK 11 but for JDK 12 I've confirmed it builds ok with binutils-2.29
# and binutils-2.32
apt install mercurial
# Be nice if this didn't check out the universe
hg clone http://hg.openjdk.java.net/jdk/jdk11/
cd jdk11/src/utils/hsdis/
# Newer versions of binutils don't appear to compile, must use 2.28 for JDK 11
wget http://ftp.heanet.ie/mirrors/ftp.gnu.org/gnu/binutils/binutils-2.28.tar.gz
tar xzvf binutils-2.28.tar.gz
make BINUTILS=binutils-2.28 ARCH=amd64
@stefan-reich
Copy link

Thanks, it works! Now I'm trying to find out how to build hsdis for JDK 14.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment