]> granicus.if.org Git - gc/commit
Allow HAVE_DL_ITERATE_PHDR to be defined by client (musl)
authorIvan Maidanski <ivmai@mail.ru>
Fri, 17 Mar 2017 08:05:56 +0000 (11:05 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 6 Apr 2017 08:34:12 +0000 (11:34 +0300)
commit796abd0a1c6a231dcc72174e612285f3ce31da1f
treeda1b97a4afd55559778214083498c5bfa7f41d3d
parent36cb46c410a4634ea33e0a136955207e3b95e41f
Allow HAVE_DL_ITERATE_PHDR to be defined by client (musl)

Do not redefine HAVE_DL_ITERATE_PHDR macro if already defined.

* dyn_load.c [OPENBSD>=200519] (HAVE_DL_ITERATE_PHDR): Do not define
if already defined.
* dyn_load.c [!USE_PROC_FOR_LIBRARIES && (__GLIBC__>=2
|| PLATFORM_ANDROID)] (HAVE_DL_ITERATE_PHDR): Likewise.
* dyn_load.c [!USE_PROC_FOR_LIBRARIES && HAVE_DL_ITERATE_PHDR
&& !DL_ITERATE_PHDR_STRONG] (dl_iterate_phdr): Define as weak symbol
(even if HAVE_DL_ITERATE_PHDR is defined outside this file).
dyn_load.c