Request for review (M): 6778669: Patch from Red Hat -- fixes compilation errors

Vladimir Kozlov Vladimir.Kozlov at Sun.COM
Sun Feb 22 12:18:20 PST 2009


Christian,

Your changes looks good.
Could you also look on and possibly include fixes for hsdis build on linux.

Thanks,
Vladimir

Christian Thalinger wrote:
> http://cr.openjdk.java.net/~twisti/6778669/webrev.00/
> 
> Finally the changeset I was waiting for was promoted into our forest. 
> 
> It would be a good idea if someone from e.g. RedHat or Ubuntu (Andrew or
> Matthias: hint! hint!) could try that patch before I push it.
> 
> -- Christian
> 

Edward Lee wrote:
 > I was trying to compile hsdis on Linux 2.6.18-53.el5 x86_64 and ran
 > into a few issues.
 >
 > The first couple was fixed by a patch [1] to address various things
 > being undefined:
 >
 > hsdis.c:50: error: expected specifier-qualifier-list before'uintptr_t'
 > hsdis-demo.c:(.text+0x96): undefined reference to `dlsym'
 > hsdis-demo.c:(.text+0xcc): undefined reference to `dlopen'
 > hsdis-demo.c:(.text+0x1fa): undefined reference to `dlerror'
 >
 > The next issue was that the disassembler couldn't use hsdis-i386.so. I
 > found out with +WizardMode that the problem was "wrong ELF class:
 > ELFCLASS64". So I had to recompile both binutils and hsdis with the
 > -m32 option.
 >
 > bin/linux/hsdis-i386.so: ELF 64-bit LSB shared object, Intel 80386,
 > version 1 (SYSV), not stripped
 > .. instead of ..
 > bin/linux/hsdis-i386.so: ELF 32-bit LSB shared object, Intel 80386,
 > version 1 (SYSV), not stripped
 >
 > I've updated the original patch [1] to have changes to Makefile and
 > README about using -m32.
 >
 > Ed
 >
 > [1] http://groups.google.com/group/jvm-languages/msg/4b7b6f19ab719cb7

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: hsdis.patch
Url: http://mail.openjdk.java.net/pipermail/hotspot-dev/attachments/20090222/28554452/attachment.ksh 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: hsdis.m32.patch
Url: http://mail.openjdk.java.net/pipermail/hotspot-dev/attachments/20090222/28554452/attachment-0001.ksh 


More information about the hotspot-dev mailing list