summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernd Schmidt <bernds_cb1@t-online.de>2007-12-03 23:01:56 +0000
committerBernd Schmidt <bernds_cb1@t-online.de>2007-12-03 23:01:56 +0000
commita53ad698a17a33b9983a381aa64a335ca296b71a (patch)
treebee0d0825ffef6877c76867b82d40cc161f91bad
parent95586b5663e51548e91fdbde34037886fb1eb07c (diff)
Blackfin FD-PIC patch 4/6.
Add a hash table for function descriptors on FD-PIC targets.
-rw-r--r--ldso/include/dl-hash.h7
1 files changed, 7 insertions, 0 deletions
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