]> granicus.if.org Git - gc/commitdiff
Do not declare dl_iterate_phdr as weak for DragonFly
authorIvan Maidanski <ivmai@mail.ru>
Wed, 17 Jan 2018 08:45:56 +0000 (11:45 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 17 Jan 2018 08:56:48 +0000 (11:56 +0300)
* dyn_load.c [!USE_PROC_FOR_LIBRARIES && __DragonFly__]
(HAVE_DL_ITERATE_PHDR, DL_ITERATE_PHDR_STRONG): Define.

dyn_load.c

index d036364e6735590d355f6484eeb604e134ec76a4..0271d71c94d509dac0c86242615c021b319a23cd 100644 (file)
@@ -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