-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
change armSoftFloat condition in ELFAnalyser #863
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. Your argument is sound and the reference to the documentation appreciated!
Before this can be merged, I'd like to ask you:
- add a comment to CHANGES.md and add this as a bugfix entry. Please see the other entries as reference for the structure.
- squash the commits together into one (rewrite the history and do a force push on this branch)
@@ -104,5 +116,16 @@ private static void extractFileFromZip(File zipTarget, String zipEntryName, File | |||
zip.close(); | |||
} | |||
} | |||
|
|||
private static void makeLinuxArmelNoflagLib(File sourceFile, File outputFile) throws IOException { | |||
final int POS_ABI_FLOAT_BIT = (byte) 0x25; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A comment would be helpful here to understand why this works. Something about the lines:
The e_flags for elf arm binaries begin at an offset of 0x24 bytes. The procedure call standard is coded on the second byte.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, thank you for your advice.
thank you for your comments and just a moment please. |
@kunkun26 are you working on this? Can I help you? |
sorry for to be late. |
@matthiasblaesing I could get grid for sonatype. Are there any changes i should ? |
i did not change related the above test and tests successfully on OSX in my local. |
@kunkun26 looks good. I'll pull this into master (for 5.0.0) and see, that I also create a 4.5.1 bugfix branch. |
I integrated the changes into master and created 4.5.1-dev branch. I'll give it a few days to settle and will look into a release from that branch. |
@kunkun26 I saw that you pushed a custom build to maven central. I'd have preferred if you'd have waited for a release. Now there will be two different 4.5.1 JNA builds in the wild and this might cause confusion. This project is maintained and if you needed an immediate release asking on the mailing list would have been the preferred way. |
@matthiasblaesing Should i ask Sonatype to delete my JNA ? |
Probably best to ask to remove it. I think dead forks like that one will only cause confusion. |
Hi, i will send PR related ELFAnalyser. Please refer to the followings.
ELF for the ARM Architecture says
The base standard is software-floating. But now, the condition of armSoftFloat is whether EF_ARM_ABI_FLOAT_SOFT is exists or not. So, if jna is called from a program based on JDK without both EF_ARM_ABI_FLOAT_XXXX bits (e.g Oracle Java Embedded, a homemade JDK), jna select lib for hardware-floating and do not work correctly.
So, I changed the condition of armSoftFloat.