add some dependencies and test code
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
#define _GNU_SOURCE
|
||||
|
||||
#include <link.h>
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -52,7 +50,7 @@ void la_preinit(uintptr_t *cookie) { printf("la_preinit(): %p\n", cookie); }
|
||||
uintptr_t la_symbind32(Elf32_Sym *sym, unsigned int ndx, uintptr_t *refcook,
|
||||
uintptr_t *defcook, unsigned int *flags,
|
||||
const char *symname) {
|
||||
printf("la_symbind64(): symname = %s; sym->st_value = %p\n", symname,
|
||||
printf("la_symbind64(): symname = %s; sym->st_value = %u\n", symname,
|
||||
sym->st_value);
|
||||
printf(" ndx = %u; flags = %#x", ndx, *flags);
|
||||
printf("; refcook = %p; defcook = %p\n", refcook, defcook);
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
#ifndef AUDITOR_H_
|
||||
#define AUDITOR_H_
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#include <link.h>
|
||||
#include <stdint.h>
|
||||
|
||||
unsigned int la_version(unsigned int version);
|
||||
char *la_objsearch(const char *name, uintptr_t *cookie, unsigned int flag);
|
||||
void la_activity(uintptr_t *cookie, unsigned int flag);
|
||||
unsigned int la_objopen(struct link_map *map, Lmid_t lmid, uintptr_t *cookie);
|
||||
unsigned int la_objclose(uintptr_t *cookie);
|
||||
void la_preinit(uintptr_t *cookie);
|
||||
uintptr_t la_symbind32(Elf32_Sym *sym, unsigned int ndx, uintptr_t *refcook,
|
||||
uintptr_t *defcook, unsigned int *flags,
|
||||
const char *symname);
|
||||
uintptr_t la_symbind64(Elf64_Sym *sym, unsigned int ndx, uintptr_t *refcook,
|
||||
uintptr_t *defcook, unsigned int *flags,
|
||||
const char *symname);
|
||||
/* Elf32_Addr la_i86_gnu_pltenter(Elf32_Sym *sym, unsigned int ndx, */
|
||||
/* uintptr_t *refcook, uintptr_t *defcook, */
|
||||
/* La_i86_regs *regs, unsigned int *flags, */
|
||||
/* const char *symname, long *framesizep); */
|
||||
|
||||
|
||||
#endif // AUDITOR_H_
|
||||
Reference in New Issue
Block a user