about summary refs log tree commit diff
path: root/elf/dl-version.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-version.c')
-rw-r--r--elf/dl-version.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/elf/dl-version.c b/elf/dl-version.c
index a4f77f5f17..f615bb0cbc 100644
--- a/elf/dl-version.c
+++ b/elf/dl-version.c
@@ -273,6 +273,10 @@ _dl_check_map_versions (struct link_map *map, int verbose)
 	  /* Store the number of available symbols.  */
 	  map->l_nversions = ndx_high + 1;
 
+	  /* Compute the pointer to the version symbols.  */
+	  map->l_versyms = ((void *) map->l_addr
+			    + map->l_info[VERSTAG (DT_VERSYM)]->d_un.d_ptr);
+
 	  if (dyn != NULL)
 	    {
 	      ElfW(Verneed) *ent;