2018-08-02 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
* elf/get-dynamic-info.h: Remove asserts that prevent ld.so from
having the flags DT_RPATH and DT_RUNPATH.
Signed-off-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
assert (info[DT_FLAGS] == NULL
|| (info[DT_FLAGS]->d_un.d_val & ~DF_BIND_NOW) == 0);
#endif
-#if defined RTLD_BOOTSTRAP || defined STATIC_PIE_BOOTSTRAP
- assert (info[DT_RUNPATH] == NULL);
- assert (info[DT_RPATH] == NULL);
-#else
+#if ! defined RTLD_BOOTSTRAP && ! defined STATIC_PIE_BOOTSTRAP
if (info[DT_FLAGS] != NULL)
{
/* Flags are used. Translate to the old form where available.