Let ld.so have flags DT_RPATH and DT_RUNPATH

2015-02-20  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>

	* elf/get-dynamic-info.h: Remove asserts that prevent ld.so from
          having the flags DT_RPATH and DT_RUNPATH.
This commit is contained in:
Tulio Magno Quites Machado Filho 2015-02-20 10:27:13 -02:00
parent 1c9a5c270d
commit 63efe9a47f

View File

@ -141,9 +141,6 @@ elf_get_dynamic_info (struct link_map *l, ElfW(Dyn) *temp)
|| (info[VERSYMIDX (DT_FLAGS_1)]->d_un.d_val & ~DF_1_NOW) == 0);
assert (info[DT_FLAGS] == NULL
|| (info[DT_FLAGS]->d_un.d_val & ~DF_BIND_NOW) == 0);
/* Flags must not be set for ld.so. */
assert (info[DT_RUNPATH] == NULL);
assert (info[DT_RPATH] == NULL);
#else
if (info[DT_FLAGS] != NULL)
{