summaryrefslogtreecommitdiff
path: root/dyn_load.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2018-01-17 11:45:56 +0300
committerIvan Maidanski <ivmai@mail.ru>2018-01-17 11:56:48 +0300
commit59a1215bd265fbc48b1196e88f1765cf4830c6e7 (patch)
tree9e004366d8cacf33e85d4228b2b8b14008663690 /dyn_load.c
parent2cd1959f67bdd274a6581c0fe83ebf426f157f42 (diff)
downloadbdwgc-59a1215bd265fbc48b1196e88f1765cf4830c6e7.tar.gz
Do not declare dl_iterate_phdr as weak for DragonFly
* dyn_load.c [!USE_PROC_FOR_LIBRARIES && __DragonFly__] (HAVE_DL_ITERATE_PHDR, DL_ITERATE_PHDR_STRONG): Define.
Diffstat (limited to 'dyn_load.c')
-rw-r--r--dyn_load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dyn_load.c b/dyn_load.c
index d036364e..0271d71c 100644
--- a/dyn_load.c
+++ b/dyn_load.c
@@ -422,7 +422,7 @@ GC_INNER GC_bool GC_register_main_static_data(void)
# endif
#endif /* __GLIBC__ >= 2 || PLATFORM_ANDROID */
-#if (defined(FREEBSD) && __FreeBSD__ >= 7)
+#if (defined(FREEBSD) && __FreeBSD__ >= 7) || defined(__DragonFly__)
/* 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