Last active
April 12, 2018 09:36
-
-
Save sameei/fb5a20949ae74e62770d7aaab2e67806 to your computer and use it in GitHub Desktop.
Build hsdis for JDK 1.8u92 on Ubuntu 17.10 Artful
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 https://ftp.gnu.org/gnu/binutils/binutils-2.26.tar.gz # or http://ftp.unicamp.br/pub/gnu/binutils/ | |
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 $JAVA_HOME/jre/lib/amd64/server/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment