]> 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>
Fri, 19 Jan 2018 08:13:45 +0000 (11:13 +0300)
* dyn_load.c [!USE_PROC_FOR_LIBRARIES && __DragonFly__]
(HAVE_DL_ITERATE_PHDR, DL_ITERATE_PHDR_STRONG): Define.

dyn_load.c

index 8813e03bd953a90fd43e5f3764223466b2f5ab00..0f36f7779ce59fa658735cb1784b0c5ee63fc947 100644 (file)
@@ -426,7 +426,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