summaryrefslogtreecommitdiff
path: root/dyn_load.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2018-04-06 08:51:33 +0300
committerIvan Maidanski <ivmai@mail.ru>2018-04-06 08:51:33 +0300
commit98e41c4c892984faffc2b04dfc94e07b4c200844 (patch)
treebc781fd70fb02004661ae5e3134410540b4ba865 /dyn_load.c
parent60369c554a26e454a48b34abf6569990996026cf (diff)
downloadbdwgc-98e41c4c892984faffc2b04dfc94e07b4c200844.tar.gz
Do not declare dl_iterate_phdr as weak for kFreeBSD
* dyn_load.c [!USE_PROC_FOR_LIBRARIES && __FreeBSD_kernel__] (HAVE_DL_ITERATE_PHDR, DL_ITERATE_PHDR_STRONG): Define.
Diffstat (limited to 'dyn_load.c')
-rw-r--r--dyn_load.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dyn_load.c b/dyn_load.c
index 77db3651..7f36b0bb 100644
--- a/dyn_load.c
+++ b/dyn_load.c
@@ -433,7 +433,8 @@ GC_INNER GC_bool GC_register_main_static_data(void)
# endif
#endif /* __GLIBC__ >= 2 || HOST_ANDROID */
-#if (defined(FREEBSD) && __FreeBSD__ >= 7) || defined(__DragonFly__)
+#if defined(__DragonFly__) || defined(__FreeBSD_kernel__) \
+ || (defined(FREEBSD) && __FreeBSD__ >= 7)
/* On the FreeBSD system, any target system at major version 7 shall */
/* have dl_iterate_phdr; therefore, we need not make it weak as below. */
# ifndef HAVE_DL_ITERATE_PHDR