Minor fixing.
This commit is contained in:
parent
4f193a64a2
commit
9b02404b44
@ -2,14 +2,31 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
# include <link.h>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# define DT_THISPROCNUM 0
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
typedef __u_quad_t ino64_t;
|
||||
|
||||
|
||||
|
||||
struct link_map_machine
|
||||
{
|
||||
/* empty by default */
|
||||
};
|
||||
|
||||
|
||||
|
||||
/* Some internal data structures of the dynamic linker used in the
|
||||
linker map. We only provide forward declarations. */
|
||||
struct libname_list;
|
||||
@ -24,25 +41,30 @@ struct libname_list;
|
||||
struct r_found_version;
|
||||
struct r_search_path_elem;
|
||||
|
||||
|
||||
|
||||
/* Forward declaration. */
|
||||
struct link_map;
|
||||
struct _link_map;
|
||||
|
||||
|
||||
|
||||
/* Structure to describe a single list of scope elements. The lookup
|
||||
functions get passed an array of pointers to such structures. */
|
||||
struct r_scope_elem
|
||||
{
|
||||
/* Array of maps for the scope. */
|
||||
struct link_map **r_list;
|
||||
struct _link_map **r_list;
|
||||
/* Number of entries in the scope. */
|
||||
unsigned int r_nlist;
|
||||
|
||||
/* Array of maps which also includes duplicates. */
|
||||
struct link_map **r_duplist;
|
||||
struct _link_map **r_duplist;
|
||||
/* Number of elements in this list. */
|
||||
unsigned int r_nduplist;
|
||||
};
|
||||
|
||||
|
||||
|
||||
/* Structure to record search path and allocation mechanism. */
|
||||
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'
|
||||
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. */
|
||||
char *l_name; /* Absolute file name object was found in. */
|
||||
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.
|
||||
They may change without notice. */
|
||||
@ -109,7 +124,7 @@ struct _link_map
|
||||
struct r_scope_elem l_symbolic_searchlist;
|
||||
|
||||
/* Dependent object that first caused this object to be loaded. */
|
||||
struct link_map *l_loader;
|
||||
struct _link_map *l_loader;
|
||||
|
||||
/* Symbol hash table. */
|
||||
Elf_Symndx l_nbuckets;
|
||||
@ -170,12 +185,12 @@ struct _link_map
|
||||
struct r_search_path_struct l_runpath_dirs;
|
||||
|
||||
/* 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. */
|
||||
unsigned int l_reldepsmax;
|
||||
unsigned int l_reldepsact;
|
||||
struct link_map **l_reldeps;
|
||||
struct _link_map **l_reldeps;
|
||||
|
||||
/* Various flag words. */
|
||||
ElfW(Word) l_feature_1;
|
||||
@ -187,6 +202,8 @@ struct _link_map
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user