Skip to content

Instantly share code, notes, and snippets.

@tivrfoa
Forked from zajacmp3/hsdis-ubuntu.sh
Created June 3, 2021 18:36
Show Gist options
  • Save tivrfoa/00794f238985fa3621e3482815fedb54 to your computer and use it in GitHub Desktop.
Save tivrfoa/00794f238985fa3621e3482815fedb54 to your computer and use it in GitHub Desktop.
Build hsdis for JDK 1.8u92 on Ubuntu 17.10 Artful
sudo apt-get install libgmp-dev libmpfr-dev libmpc-dev g++-multilib mercurial texinfo
hg clone http://hg.openjdk.java.net/jdk8u/jdk8u
cd jdk8u
hg update jdk8u92-b14
sed -ri 's/subrepos="[^"]+"/subrepos="hotspot"/' ./make/scripts/hgforest.sh # only get hotspot
sed -ri 's/subrepos="[^"]+"/subrepos="hotspot"/' ./common/bin/hgforest.sh # only get hotspot
chmod +x ./get_source.sh; ./get_source.sh
cd hotspot/src/share/tools/hsdis
wget http://ftp.heanet.ie/mirrors/ftp.gnu.org/gnu/binutils/binutils-2.26.tar.gz
tar -xzf binutils-2.26.tar.gz
sed -ri 's/development=.*/development=false/' ./binutils-2.26/bfd/development.sh # set development to false
make BINUTILS=binutils-2.26 ARCH=amd64
sudo cp build/linux-amd64/hsdis-amd64.so /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment