On 01/08/2013 09:29 PM, Bob Vandette wrote:

Embedded processors support a variety of CPU configurations that are not all 
binary compatible.  If a developer needs to provide native binaries for one or 
more of these configurations, they need a way of querying the platform 
constraints in order to load the appropriate JNI shared library.

I wonder if it might be better to shift the burden of selecting a working DSO to ld.so: try to dlopen() several DSOs, until you find one that works.

This would need a precise ABI specification at the ELF level, and ld.so would have to reject loading ABI-incompatible DSOs.

--
Florian Weimer / Red Hat Product Security Team

Reply via email to