Bug 681 - Add Parsing of ELF Header of Binary Files to Determine ABI / Required Libraries
Summary: Add Parsing of ELF Header of Binary Files to Determine ABI / Required Libraries
Status: RESOLVED FIXED
Alias: None
Product: Gluegen
Classification: JogAmp
Component: core (show other bugs)
Version: 2
Hardware: All all
: --- enhancement
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2013-02-06 17:13 CET by Sven Gothel
Modified: 2013-02-09 06:19 CET (History)
0 users

See Also:
Type: ---
SCM Refs:
2432dbef17c1dc4164f055cf434073bdabf8a6a9 371e1dbff6f5f255ab27ed0ab32368abb06eed82 30841742e735e70b3946d16711089960084e894c
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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