Explorar o código

Blackfin FD-PIC patch 4/6.
Add a hash table for function descriptors on FD-PIC targets.

Bernd Schmidt %!s(int64=16) %!d(string=hai) anos
pai
achega
a53ad698a1
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      ldso/include/dl-hash.h

+ 7 - 0
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