Unknown cpu type when compiling OpenSSL FIPS Capable libraries for arm64 or arm7s

荒凉一梦 提交于 2019-12-04 13:30:36

It will work if you add this to cpu_adjustment[]

CPU_TYPE_ARM64,   CPU_SUBTYPE_ARM64_ALL,  12, 12 ,

For reference:

#define CPU_ARCH_ABI64  0x01000000      /* 64 bit ABI */

#define CPU_TYPE_ARM64          (CPU_TYPE_ARM | CPU_ARCH_ABI64)

/*
 *  ARM64 subtypes
 */
#define CPU_SUBTYPE_ARM64_ALL           ((cpu_subtype_t) 0)

Finding the adjustment was fun. ;-)

I've modified the CPU type before, so it's doable. You may also need to modify the CPU adjustment as well. You need to add an entry to cpu_adjustment[] in incore_macho.c and cputype

I think for arm64 it is CPU_SUBTYPE_ARM64_V8 I do not know the adjustment. Please let us know if you get this to work

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!