about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>2014-02-06 12:10:00 -0600
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>2014-02-06 12:10:00 -0600
commitc93dc5f0d2811b971a8cf124818fff22d1c74e52 (patch)
tree789df89a6ea3a981f7c25fa6efe1de7963720e38
parent8e6ea3948c217401a84cd1115ca0291bdf2be90c (diff)
downloadglibc-c93dc5f0d2811b971a8cf124818fff22d1c74e52.tar.gz
glibc-c93dc5f0d2811b971a8cf124818fff22d1c74e52.tar.xz
glibc-c93dc5f0d2811b971a8cf124818fff22d1c74e52.zip
Fix assert() remove for DT_RUNPATH and DT_RPATH
This patch fixes a wrong merge of d19762a5fd946ef86fb2922eb5710aac8000ab25
-rw-r--r--ChangeLog5
-rw-r--r--elf/get-dynamic-info.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 01518f8707..7835d363e3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-02-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
+
+	* elf/get-dynamic-info.h (elf_get_dynamic_info): Fix remove of
+	assert.
+
 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
 
 	* Versions.def (libm): Add GLIBC_2.3.
diff --git a/elf/get-dynamic-info.h b/elf/get-dynamic-info.h
index 1c30c44195..57cf964f20 100644
--- a/elf/get-dynamic-info.h
+++ b/elf/get-dynamic-info.h
@@ -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.  */
-  info[DT_RUNPATH] == NULL;
-  info[DT_RPATH] == NULL;
+  info[DT_RUNPATH] = NULL;
+  info[DT_RPATH] = NULL;
 #else
   if (info[DT_FLAGS] != NULL)
     {