(struct link_map): Add l_scope_mem and l_scope_max elements. Change l_scope to be...
authorUlrich Drepper <drepper@redhat.com>
Fri, 7 Sep 2001 07:50:47 +0000 (07:50 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 7 Sep 2001 07:50:47 +0000 (07:50 +0000)
include/link.h

index 0ae0526..77c1851 100644 (file)
@@ -200,9 +200,13 @@ struct link_map
        need not be the same as l_addr.  */
     ElfW(Addr) l_map_start, l_map_end;
 
+    /* Default array for 'l_scope'.  */
+    struct r_scope_elem *l_scope_mem[4];
+    /* Size of array allocated for 'l_scope'.  */
+    size_t l_scope_max;
     /* This is an array defining the lookup scope for this link map.
        There are at most three different scope lists.  */
-    struct r_scope_elem *l_scope[4];
+    struct r_scope_elem **l_scope;
 
     /* A similar array, this time only with the local scope.  This is
        used occasionally.  */