diff options
Diffstat (limited to 'user/lib/ld-weenix/ldutil.h')
-rw-r--r-- | user/lib/ld-weenix/ldutil.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/user/lib/ld-weenix/ldutil.h b/user/lib/ld-weenix/ldutil.h new file mode 100644 index 0000000..2313625 --- /dev/null +++ b/user/lib/ld-weenix/ldutil.h @@ -0,0 +1,39 @@ +/* + * File: ldutil.h + * Date: 15 March 1998 + * Acct: David Powell (dep) + * Desc: Miscellanious utility functions + * + * + * Acct: Sandy Harvie (charvie) + * Date: 27 March 2019 + * Desc: Modified for x86-64 + */ + +#ifndef _ldutil_h_ +#define _ldutil_h_ +#include "ldtypes.h" +#ifdef __cplusplus +extern "C" +{ +#endif + + void _ldverify(int test, const char *msg); + int _ldzero(); + + unsigned long _ldelfhash(const char *name); + int _ldtryopen(const char *filename, const char *path); + void _ldmapsect(int fd, unsigned long baseaddr, Elf64_Phdr *phdr, int textrel); + void _ldloadobj(module_t *module); + void _ldrelocobj(module_t *module); + void _ldcleanup(); + ldinit_t _ldstart(char **environ, auxv_t *auxv); + + void _ldrelocplt(module_t *module); + void _ldpltgot_init(module_t *module); + +#ifdef __cplusplus +} +#endif + +#endif /* _ldutil_h_ */ |