From a53ad698a17a33b9983a381aa64a335ca296b71a Mon Sep 17 00:00:00 2001
From: Bernd Schmidt <bernds_cb1@t-online.de>
Date: Mon, 3 Dec 2007 23:01:56 +0000
Subject: Blackfin FD-PIC patch 4/6. Add a hash table for function descriptors
 on FD-PIC targets.

---
 ldso/include/dl-hash.h | 7 +++++++
 1 file changed, 7 insertions(+)

(limited to 'ldso')

diff --git a/ldso/include/dl-hash.h b/ldso/include/dl-hash.h
index e5f9f8806..d5c63fa28 100644
--- a/ldso/include/dl-hash.h
+++ b/ldso/include/dl-hash.h
@@ -89,6 +89,13 @@ struct elf_resolve {
    * we don't have to calculate it every time, which requires a divide */
   unsigned long data_words;
 #endif
+
+#ifdef __FDPIC__
+  /* Every loaded module holds a hashtable of function descriptors of
+     functions defined in it, such that it's easy to release the
+     memory when the module is dlclose()d.  */
+  struct funcdesc_ht *funcdesc_ht;
+#endif
 };
 
 #define RELOCS_DONE	    0x000001
-- 
cgit v1.2.3