From 63efe9a47f4c22b84e6f4288c4c410f519f90bc0 Mon Sep 17 00:00:00 2001 From: Tulio Magno Quites Machado Filho Date: Fri, 20 Feb 2015 10:27:13 -0200 Subject: [PATCH] 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. --- elf/get-dynamic-info.h | 3 --- 1 file changed, 3 deletions(-) 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) { -- 2.47.2