Skip to content

Instantly share code, notes, and snippets.

@mdh1418
Last active March 15, 2023 17:59
Show Gist options
  • Save mdh1418/9917ded440410b9cac5598e5f7fae088 to your computer and use it in GitHub Desktop.
Save mdh1418/9917ded440410b9cac5598e5f7fae088 to your computer and use it in GitHub Desktop.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include <stdlib.h>
#include <mono/metadata/assembly.h>
#include "shared_library_log.h"
static void
preload_assembly (const char* filename)
{
MonoAssembly *assembly = mono_assembly_load_with_partial_name (filename, NULL);
if (!assembly)
LOG_ERROR ("Could not open assembly '%s'. Unable to properly initialize GOT slots.\n", filename);
}
void
preload_assemblies_with_exported_symbols ()
{
preload_assembly("Android.Device_Emulator.Aot_Llvm.Test");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment