diff options
author | Elijah Taylor <elijahtaylor@google.com> | 2013-02-01 00:04:20 +0400 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2015-10-06 11:07:37 +0300 |
commit | 9738a14a034757bf46ad3fb7e755b878ac0ef95e (patch) | |
tree | 8de9a3ba34b6c20da0a4fb222ad8f6c839fe1541 /dyn_load.c | |
parent | 0db6025887ea1b9c8714e3908ae0510e99f447ac (diff) |
NaCl runtime fixes
(Apply commit b328e88 from 'mono_libgc' branch.)
* fix compile/runtime issues caused by upstream changes
* add NaCl glibc support
* various changes to support running tests in NaCl glibc
from 'make check'
Conflicts:
* dyn_load.c
* include/private/gcconfig.h
* misc.c
* pthread_stop_world.c
* pthread_support.c
Diffstat (limited to 'dyn_load.c')
-rw-r--r-- | dyn_load.c | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -52,18 +52,16 @@ STATIC GC_has_static_roots_func GC_has_static_roots = 0; #if (defined(DYNAMIC_LOADING) || defined(MSWIN32) || defined(MSWINCE) \ || defined(CYGWIN32)) && !defined(PCR) -#if !defined(SOLARISDL) && !defined(IRIX5) && \ - !defined(MSWIN32) && !defined(MSWINCE) && !defined(CYGWIN32) && \ - !(defined(ALPHA) && defined(OSF1)) && \ - !defined(HPUX) && !(defined(LINUX) && defined(__ELF__)) && \ - !defined(AIX) && !defined(SCO_ELF) && !defined(DGUX) && \ - !(defined(FREEBSD) && defined(__ELF__)) && \ - !(defined(OPENBSD) && (defined(__ELF__) || defined(M68K))) && \ - !(defined(NETBSD) && defined(__ELF__)) && !defined(HURD) && \ - !defined(DARWIN) && !defined(CYGWIN32) +#if !defined(DARWIN) && !defined(SCO_ELF) && !defined(SOLARISDL) \ + && !defined(AIX) && !defined(DGUX) && !defined(IRIX5) && !defined(HPUX) \ + && !defined(CYGWIN32) && !defined(MSWIN32) && !defined(MSWINCE) \ + && !(defined(ALPHA) && defined(OSF1)) \ + && !(defined(FREEBSD) && defined(__ELF__)) \ + && !((defined(LINUX) || defined(NACL)) && defined(__ELF__)) \ + && !(defined(NETBSD) && defined(__ELF__)) && !defined(HURD) \ + && !(defined(OPENBSD) && (defined(__ELF__) || defined(M68K))) --> We only know how to find data segments of dynamic libraries for the - --> above. Additional SVR4 variants might not be too - --> hard to add. + --> above. Additional SVR4 variants might not be too hard to add. #endif #include <stdio.h> @@ -89,7 +87,8 @@ STATIC GC_has_static_roots_func GC_has_static_roots = 0; #if defined(SCO_ELF) || defined(DGUX) || defined(HURD) \ || (defined(__ELF__) && (defined(LINUX) || defined(FREEBSD) \ - || defined(NETBSD) || defined(OPENBSD))) + || defined(NACL) || defined(NETBSD) \ + || defined(OPENBSD))) # include <stddef.h> # if !defined(OPENBSD) && !defined(PLATFORM_ANDROID) /* OpenBSD does not have elf.h file; link.h below is sufficient. */ @@ -257,7 +256,8 @@ GC_INNER void GC_register_dynamic_libraries(void) #if defined(SCO_ELF) || defined(DGUX) || defined(HURD) \ || (defined(__ELF__) && (defined(LINUX) || defined(FREEBSD) \ - || defined(NETBSD) || defined(OPENBSD))) + || defined(NACL) || defined(NETBSD) \ + || defined(OPENBSD))) #ifdef USE_PROC_FOR_LIBRARIES |