Add AOT support for the EntryPoint property for UnmanagedCallersOnly. (#44809)
authorZoltan Varga <vargaz@gmail.com>
Thu, 19 Nov 2020 10:24:37 +0000 (05:24 -0500)
committerGitHub <noreply@github.com>
Thu, 19 Nov 2020 10:24:37 +0000 (05:24 -0500)
commit88c4a462ed964e3bde05cebcdaf53a8602d25156
tree79576f84bcb6f1806d8cd6b78ac8957384d0a179
parent1821d9c14b970d58e0768256de138b6c0287e07d
Add AOT support for the EntryPoint property for UnmanagedCallersOnly. (#44809)

* Change mono_reflection_create_custom_attr_data_args_noalloc () so it returns the beginning of the metadata string so its length can be computed.

* Add AOT support for the EntryPoint property for UnmanagedCallersOnly.

Fixes https://github.com/dotnet/runtime/issues/44803.

* Update src/mono/mono/mini/driver.c

Co-authored-by: Aleksey Kliger (λgeek) <akliger@gmail.com>
Co-authored-by: Aleksey Kliger (λgeek) <akliger@gmail.com>
src/mono/mono/metadata/custom-attrs.c
src/mono/mono/mini/aot-compiler.c
src/mono/mono/mini/driver.c