Move cpuid checks inline.

During fat runtime function resolution there was a chance that the PLT
might not be initialised in time for us to call the cpuid check
functions. Moving them inline means there is no PLT to worry about.

Fixes #78
This commit is contained in:
Matthew Barr
2017-12-11 16:02:26 +11:00
committed by Xiang Wang
parent 3da5fc7cf3
commit 50ea83cb26
6 changed files with 225 additions and 165 deletions

View File

@@ -28,6 +28,7 @@
#include "hs_common.h"
#include "util/cpuid_flags.h"
#include "util/cpuid_inline.h"
HS_PUBLIC_API
hs_error_t HS_CDECL hs_valid_platform(void) {