about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
Diffstat (limited to 'elf')
-rw-r--r--elf/elf.h4
-rw-r--r--elf/link.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/elf/elf.h b/elf/elf.h
index a3ce2d98fc..9a6cfb6397 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -56,6 +56,10 @@ typedef uint64_t Elf64_Off;
 typedef uint16_t Elf32_Section;
 typedef uint16_t Elf64_Section;
 
+/* Type for version symbol information.  */
+typedef Elf32_Half Elf32_Versym;
+typedef Elf64_Half Elf64_Versym;
+
 
 /* The ELF file header.  This appears at the start of every ELF file.  */
 
diff --git a/elf/link.h b/elf/link.h
index 2de39e5711..9b6e9df7e6 100644
--- a/elf/link.h
+++ b/elf/link.h
@@ -177,7 +177,7 @@ struct link_map
     ElfW(Addr) *l_reloc_result;
 
     /* Pointer to the version information if available.  */
-    ElfW(Half) *l_versyms;
+    ElfW(Versym) *l_versyms;
 
     /* String specifying the path where this object was found.  */
     const char *l_origin;