Minor fixing.

This commit is contained in:
agibert 2003-01-23 09:42:28 +00:00
parent 4f193a64a2
commit 9b02404b44

View File

@ -2,14 +2,31 @@
extern "C" { extern "C" {
#endif #endif
# include <link.h> # include <link.h>
# define DT_THISPROCNUM 0 # define DT_THISPROCNUM 0
typedef __u_quad_t ino64_t; typedef __u_quad_t ino64_t;
struct link_map_machine
{
/* empty by default */
};
/* Some internal data structures of the dynamic linker used in the /* Some internal data structures of the dynamic linker used in the
linker map. We only provide forward declarations. */ linker map. We only provide forward declarations. */
struct libname_list; struct libname_list;
@ -24,25 +41,30 @@ struct libname_list;
struct r_found_version; struct r_found_version;
struct r_search_path_elem; struct r_search_path_elem;
/* Forward declaration. */ /* Forward declaration. */
struct link_map; struct _link_map;
/* Structure to describe a single list of scope elements. The lookup /* Structure to describe a single list of scope elements. The lookup
functions get passed an array of pointers to such structures. */ functions get passed an array of pointers to such structures. */
struct r_scope_elem struct r_scope_elem
{ {
/* Array of maps for the scope. */ /* Array of maps for the scope. */
struct link_map **r_list; struct _link_map **r_list;
/* Number of entries in the scope. */ /* Number of entries in the scope. */
unsigned int r_nlist; unsigned int r_nlist;
/* Array of maps which also includes duplicates. */ /* Array of maps which also includes duplicates. */
struct link_map **r_duplist; struct _link_map **r_duplist;
/* Number of elements in this list. */ /* Number of elements in this list. */
unsigned int r_nduplist; unsigned int r_nduplist;
}; };
/* Structure to record search path and allocation mechanism. */ /* Structure to record search path and allocation mechanism. */
struct r_search_path_struct struct r_search_path_struct
{ {
@ -52,13 +74,6 @@ struct r_search_path_struct
struct link_map_machine
{
/* empty by default */
};
/* Structure describing a loaded shared object. The `l_next' and `l_prev' /* Structure describing a loaded shared object. The `l_next' and `l_prev'
members form a chain of all the shared objects loaded at startup. members form a chain of all the shared objects loaded at startup.
@ -76,7 +91,7 @@ struct _link_map
ElfW(Addr) l_addr; /* Base address shared object is loaded at. */ ElfW(Addr) l_addr; /* Base address shared object is loaded at. */
char *l_name; /* Absolute file name object was found in. */ char *l_name; /* Absolute file name object was found in. */
ElfW(Dyn) *l_ld; /* Dynamic section of the shared object. */ ElfW(Dyn) *l_ld; /* Dynamic section of the shared object. */
struct link_map *l_next, *l_prev; /* Chain of loaded objects. */ struct _link_map *l_next, *l_prev; /* Chain of loaded objects. */
/* All following members are internal to the dynamic linker. /* All following members are internal to the dynamic linker.
They may change without notice. */ They may change without notice. */
@ -109,7 +124,7 @@ struct _link_map
struct r_scope_elem l_symbolic_searchlist; struct r_scope_elem l_symbolic_searchlist;
/* Dependent object that first caused this object to be loaded. */ /* Dependent object that first caused this object to be loaded. */
struct link_map *l_loader; struct _link_map *l_loader;
/* Symbol hash table. */ /* Symbol hash table. */
Elf_Symndx l_nbuckets; Elf_Symndx l_nbuckets;
@ -170,12 +185,12 @@ struct _link_map
struct r_search_path_struct l_runpath_dirs; struct r_search_path_struct l_runpath_dirs;
/* List of object in order of the init and fini calls. */ /* List of object in order of the init and fini calls. */
struct link_map **l_initfini; struct _link_map **l_initfini;
/* List of the dependencies introduced through symbol binding. */ /* List of the dependencies introduced through symbol binding. */
unsigned int l_reldepsmax; unsigned int l_reldepsmax;
unsigned int l_reldepsact; unsigned int l_reldepsact;
struct link_map **l_reldeps; struct _link_map **l_reldeps;
/* Various flag words. */ /* Various flag words. */
ElfW(Word) l_feature_1; ElfW(Word) l_feature_1;
@ -187,6 +202,8 @@ struct _link_map
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif