Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/linker.h
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | |||||
#define LINKER_FILE_LINKED 0x1 /* file has been fully linked */ | #define LINKER_FILE_LINKED 0x1 /* file has been fully linked */ | ||||
#define LINKER_FILE_MODULES 0x2 /* file has >0 modules at preload */ | #define LINKER_FILE_MODULES 0x2 /* file has >0 modules at preload */ | ||||
TAILQ_ENTRY(linker_file) link; /* list of all loaded files */ | TAILQ_ENTRY(linker_file) link; /* list of all loaded files */ | ||||
char* filename; /* file which was loaded */ | char* filename; /* file which was loaded */ | ||||
char* pathname; /* file name with full path */ | char* pathname; /* file name with full path */ | ||||
int id; /* unique id */ | int id; /* unique id */ | ||||
caddr_t address; /* load address */ | caddr_t address; /* load address */ | ||||
size_t size; /* size of file */ | size_t size; /* size of file */ | ||||
caddr_t ctors_addr; /* address of .ctors */ | caddr_t ctors_addr; /* address of .ctors/.init_array */ | ||||
size_t ctors_size; /* size of .ctors */ | size_t ctors_size; /* size of .ctors/.init_array */ | ||||
caddr_t dtors_addr; /* address of .dtors/.fini_array */ | |||||
size_t dtors_size; /* size of .dtors/.fini_array */ | |||||
int ndeps; /* number of dependencies */ | int ndeps; /* number of dependencies */ | ||||
linker_file_t* deps; /* list of dependencies */ | linker_file_t* deps; /* list of dependencies */ | ||||
STAILQ_HEAD(, common_symbol) common; /* list of common symbols */ | STAILQ_HEAD(, common_symbol) common; /* list of common symbols */ | ||||
TAILQ_HEAD(, module) modules; /* modules in this file */ | TAILQ_HEAD(, module) modules; /* modules in this file */ | ||||
TAILQ_ENTRY(linker_file) loaded; /* preload dependency support */ | TAILQ_ENTRY(linker_file) loaded; /* preload dependency support */ | ||||
int loadcnt; /* load counter value */ | int loadcnt; /* load counter value */ | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 292 Lines • Show Last 20 Lines |