From: Tulio Magno Quites Machado Filho Date: Fri, 20 Feb 2015 12:27:13 +0000 (-0200) Subject: Let ld.so have flags DT_RPATH and DT_RUNPATH X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63efe9a47f4c22b84e6f4288c4c410f519f90bc0;p=thirdparty%2Fglibc.git Let ld.so have flags DT_RPATH and DT_RUNPATH 2015-02-20 Tulio Magno Quites Machado Filho * elf/get-dynamic-info.h: Remove asserts that prevent ld.so from having the flags DT_RPATH and DT_RUNPATH. --- diff --git a/elf/get-dynamic-info.h b/elf/get-dynamic-info.h index 7525c3a5b20..dd43c6cfbef 100644 --- a/elf/get-dynamic-info.h +++ b/elf/get-dynamic-info.h @@ -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) {