change armSoftFloat condition in ELFAnalyser#863
change armSoftFloat condition in ELFAnalyser#863matthiasblaesing merged 1 commit intojava-native-access:masterfrom
Conversation
matthiasblaesing
left a comment
There was a problem hiding this comment.
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)
| } | ||
|
|
||
| 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.
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.
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.