mono / mono.posix

POSIX/Unix interface for Mono, .NET and .NET Core. Provides functionality for managed code to access POSIX/Unix features not accessible via the BCL. This repository supersedes the older code in https://github.com/mono/mono
MIT License
40 stars 9 forks source link

What is the actual list of cpu attr values for <dllmap cpu=""> config? #16

Open devizer opened 2 years ago

devizer commented 2 years ago

I've built and tested portable libMono.Unix.so for armel armv5 cpu.

How to specify it in the config? What is the actual list of cpu attr values for config?

man mono-config says only single arm 32 cpu: cpu This is the name of the architecture for which the mapping should be applied. Allowed values are: x86, x86-64, sparc, ppc, s390, s390x, arm, mips, alpha, hppa, ia64.

devizer commented 2 years ago

Here is the answer: https://github.com/mono/mono/blob/main/mono/metadata/mono-config.c

It seems mono runtime can't distinguish armel v5 and armhf v6|v7