]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Let ld.so have flags DT_RPATH and DT_RUNPATH
authorTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Fri, 20 Feb 2015 12:27:13 +0000 (10:27 -0200)
committerTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Wed, 2 Aug 2017 21:18:07 +0000 (18:18 -0300)
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.

elf/get-dynamic-info.h

index 7525c3a5b20b5619aeda35b5f7b9849f9dfcad39..dd43c6cfbefae1bdec3d24bad3aaaab4c71d3bc8 100644 (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)
     {