Created
November 12, 2010 03:57
-
-
Save rednaxelafx/673705 to your computer and use it in GitHub Desktop.
A quick-and-dirty patch to build hsdis (http://hg.openjdk.java.net/jdk7/hotspot/hotspot/file/c18cbe5936b8/src/share/tools/hsdis/) on 32-bit Ubuntu 10.04. Do `make ARCH=i386 all` on Ubuntu 64-bit to build hsdis-i386
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
diff -rupN original/hsdis.c hsdis.c | |
--- original/hsdis.c 2010-11-12 11:39:59.617873967 +0800 | |
+++ hsdis.c 2010-11-12 11:42:00.566353179 +0800 | |
@@ -29,7 +29,11 @@ | |
#include "hsdis.h" | |
-#include <sysdep.h> | |
+#if 0 | |
+ #include <sysdep.h> | |
+#else | |
+ #include <errno.h> | |
+#endif | |
#include <libiberty.h> | |
#include <bfd.h> | |
#include <dis-asm.h> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To build hsdis for i386 on Ubuntu 12.04/AMD64, do
otherwise
make all
will only build hsdis for amd64