Improve ELF valid_object() helper
Improve ELF valid_object() helper

Ensures the ELF header version is valid.

Signed-off-by: Zachary T Welch <ed31003884a63125fcccb7c6499cbee2f4d64832@codesourcery.com>

fillexen/libunwind,Chilledheart/libunwind,yuyichao/libunwind,atanasyan/libunwind-android,androidarmv6/android_external_libunwind,Keno/libunwind,joyent/libunwind,dreal-deps/libunwind,cloudius-systems/libunwind,CyanogenMod/android_external_libunwind,zliu2014/libunwind-tilegx,SyndicateRogue/libunwind,rntz/libunwind,tkelman/libunwind,ehsan/libunwind,adsharma/libunwind,androidarmv6/android_external_libunwind,cloudius-systems/libunwind,evaautomation/libunwind,DroidSim/platform_external_libunwind,fdoray/libunwind,DroidSim/platform_external_libunwind,atanasyan/libunwind,evaautomation/libunwind,Keno/libunwind,jrmuizel/libunwind,cms-externals/libunwind,maltek/platform_external_libunwind,rogwfu/libunwind,cms-externals/libunwind,lat/libunwind,0xlab/0xdroid-external_libunwind,martyone/libunwind,mpercy/libunwind,krytarowski/libunwind,frida/libunwind,dropbox/libunwind,tronical/libunwind,vegard/libunwind,geekboxzone/mmallow_external_libunwind,dreal-deps/libunwind,CyanogenMod/android_external_libunwind,rantala/libunwind,geekboxzone/lollipop_external_libunwind,djwatson/libunwind,adsharma/libunwind,wdv4758h/libunwind,SyndicateRogue/libunwind,CyanogenMod/android_external_libunwind,maltek/platform_external_libunwind,unkadoug/libunwind,Chilledheart/libunwind,djwatson/libunwind,SyndicateRogue/libunwind,zliu2014/libunwind-tilegx,krytarowski/libunwind,geekboxzone/lollipop_external_libunwind,mpercy/libunwind,android-ia/platform_external_libunwind,tkelman/libunwind,atanasyan/libunwind,vegard/libunwind,wdv4758h/libunwind,tkelman/libunwind,libunwind/libunwind,androidarmv6/android_external_libunwind,dagar/libunwind,unkadoug/libunwind,dreal-deps/libunwind,zliu2014/libunwind-tilegx,bo-on-software/libunwind,Chilledheart/libunwind,geekboxzone/lollipop_external_libunwind,pathscale/libunwind,tony/libunwind,tronical/libunwind,pathscale/libunwind,atanasyan/libunwind-android,martyone/libunwind,0xlab/0xdroid-external_libunwind,krytarowski/libunwind,bo-on-software/libunwind,DroidSim/platform_external_libunwind,joyent/libunwind,fdoray/libunwind,wdv4758h/libunwind,project-zerus/libunwind,maltek/platform_external_libunwind,atanasyan/libunwind-android,vtjnash/libunwind,tronical/libunwind,rantala/libunwind,adsharma/libunwind,vtjnash/libunwind,joyent/libunwind,rogwfu/libunwind,dropbox/libunwind,dagar/libunwind,fdoray/libunwind,android-ia/platform_external_libunwind,0xlab/0xdroid-external_libunwind,igprof/libunwind,lat/libunwind,igprof/libunwind,unkadoug/libunwind,project-zerus/libunwind,dagar/libunwind,djwatson/libunwind,igprof/libunwind,frida/libunwind,cloudius-systems/libunwind,lat/libunwind,zeldin/platform_external_libunwind,frida/libunwind,ehsan/libunwind,tony/libunwind,jrmuizel/libunwind,yuyichao/libunwind,olibc/libunwind,vtjnash/libunwind,cms-externals/libunwind,rntz/libunwind,tony/libunwind,atanasyan/libunwind,zeldin/platform_external_libunwind,jrmuizel/libunwind,zeldin/platform_external_libunwind,libunwind/libunwind,martyone/libunwind,olibc/libunwind,ehsan/libunwind,project-zerus/libunwind,Keno/libunwind,yuyichao/libunwind,libunwind/libunwind,geekboxzone/mmallow_external_libunwind,rntz/libunwind,evaautomation/libunwind,fillexen/libunwind,fillexen/libunwind,olibc/libunwind,rogwfu/libunwind,pathscale/libunwind,bo-on-software/libunwind,rantala/libunwind,mpercy/libunwind,android-ia/platform_external_libunwind,vegard/libunwind,geekboxzone/mmallow_external_libunwind,dropbox/libunwind