]> 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.ibm.com>
Thu, 2 Aug 2018 16:57:26 +0000 (13:57 -0300)
committerTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Tue, 15 Sep 2020 13:41:06 +0000 (10:41 -0300)
Remove asserts that prevent ld.so from  having the flags DT_RPATH and
DT_RUNPATH.

elf/get-dynamic-info.h

index 4f6a86ef375ac6225cf067594b4851cbf8a1ded5..3040d9a914fe363e845ab3516a581c812a202412 100644 (file)
@@ -142,10 +142,7 @@ 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);
 #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.