forked from openjdk/jdk
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hsdis fails to build under binutils-2.39 #3
Comments
In the case of not considering the compatibility of the old version, the simple method of JDK-8244819 can be used to repair: diff --git a/src/utils/hsdis/binutils/hsdis-binutils.c b/src/utils/hsdis/binutils/hsdis-binutils.c
index 279ed53ba5d..70230f8de32 100644
--- a/src/utils/hsdis/binutils/hsdis-binutils.c
+++ b/src/utils/hsdis/binutils/hsdis-binutils.c
@@ -561,7 +561,7 @@ static void init_disassemble_info_from_bfd(struct disassemble_info* dinfo,
fprintf_ftype fprintf_func,
bfd* abfd,
char* disassembler_options) {
- init_disassemble_info(dinfo, stream, fprintf_func);
+ init_disassemble_info(dinfo, stream, fprintf_func, NULL);
dinfo->flavour = bfd_get_flavour(abfd);
dinfo->arch = bfd_get_arch(abfd); But when we run
|
openjdk#10817 wow, shipilev has already found this problem before. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I cross-compile jdk, hsdis will fail to build when using binutils2.39. The configure script like this:
And fails like this:
The reasson is that binutils add additional parameter of
init_disassemble_info()
[1], which now causes compilation failures.[1] https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=60a3da00bd5407f07d64dff82a4dae98230dfaac
The text was updated successfully, but these errors were encountered: