]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Remove assert() if DT_RUNPATH and DT_RPATH flags are found in ld.so.
authorRyan S. Arnold <rsa@linux.vnet.ibm.com>
Thu, 1 Aug 2013 16:11:18 +0000 (13:11 -0300)
committerTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Thu, 1 Aug 2013 16:11:18 +0000 (13:11 -0300)
ChangeLog
elf/get-dynamic-info.h

index 6aecb1b26eca443ec82b029428f7f376bbdf099c..cbb6a56eb454078a0a58baa3a03983f314150f78 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2012-07-06  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
+
+       * elf/get-dynamic-info.h (elf_get_dynamic_info): Remove assert()
+       around DT_RUNPATH and DT_RPATH which prevents running a dynamic
+       linker with an embedded RPATH flag, which is what a compiler
+       modified to embed a non-default INTERP section would do.
+
+
 2013-07-30  David S. Miller  <davem@davemloft.net>
 
        * po/fr.po: Update French translation from translation project.
index 3cc10733e56246a7b135925ecddb620900ddcf89..57cf964f20b6b2ad6b57691f26d34712360964dc 100644 (file)
@@ -130,8 +130,8 @@ elf_get_dynamic_info (struct link_map *l, ElfW(Dyn) *temp)
   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);
+  info[DT_RUNPATH] = NULL;
+  info[DT_RPATH] = NULL;
 #else
   if (info[DT_FLAGS] != NULL)
     {