]> 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>
Fri, 7 Apr 2017 15:49:31 +0000 (18:49 +0300)
commit89240184d82c6155b974ae90adc481bf5dedc499
tree11045357eb6385328d3644e8179f38f0f5cd9082
parent10fa7eb7cb8f5690f6bb76b06d2194f260846e38
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