3 * Interface to the dynamic linker
6 * Mono Team (http://www.mono-project.com)
8 * Copyright 2001-2004 Ximian, Inc.
9 * Copyright 2004-2009 Novell, Inc.
10 * Licensed under the MIT license. See LICENSE file in the project root for full license information.
14 #if defined (TARGET_MACH)
16 #include "mono/utils/mono-dl.h"
17 #include "mono/utils/mono-embed.h"
18 #include "mono/utils/mono-path.h"
27 #include <mach-o/dyld.h>
30 mono_dl_get_so_prefix (void)
35 mono_dl_get_so_suffixes (void)
37 static const char *suffixes[] = {
47 mono_dl_get_executable_path (char *buf, int buflen)
49 uint32_t bsize = buflen;
50 if (_NSGetExecutablePath (buf, &bsize) == 0)
56 mono_dl_get_system_dir (void)
59 /* IOS9 can't load system libraries using relative paths, i.e. 'libc' doesn't work, but '/usr/lib/libc' does. */