Bug 681

Summary: Add Parsing of ELF Header of Binary Files to Determine ABI / Required Libraries
Product: [JogAmp] Gluegen Reporter: Sven Gothel <sgothel>
Component: coreAssignee: Sven Gothel <sgothel>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: ---    
Version: 2   
Hardware: All   
OS: all   
Type: --- SCM Refs:
2432dbef17c1dc4164f055cf434073bdabf8a6a9 371e1dbff6f5f255ab27ed0ab32368abb06eed82 30841742e735e70b3946d16711089960084e894c
Workaround: ---

Description Sven Gothel 2013-02-06 17:13:50 CET
Add Parsing of ELF Header of Binary Files to Determine ABI / Required Libraries

Since 'os.and.arch' system property is not satisfying, we shall determine the ABI
properly by parsing the ELF header.

I already took a brief look into the specification and it seems like
a simply GlueGen StructAccessor 'binding' could solve this problem.
Comment 3 Sven Gothel 2013-02-09 06:19:24 CET
http://jogamp.org/git/?p=gluegen.git;a=commit;h=30841742e735e70b3946d16711089960084e894c


Add Elf Parsing for other OS than Linux, if ARM and !ANDROID using /proc/self/exe (Linux) 
or a found java/jvm native lib.

- PlatformPropsImpl.queryABITypeImpl: Check Elf Header for ARM + !ANDROID 
  (i.e. add other OS than Linux, use native java/jmv lib)

- NativeLibrary.enumerateLibraryPaths: Add 'sun.boot.library.path' to enumeration!

- TestElfReader01: Add test for finding java/jvm native lib and parse it