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);
|
||||
|
||||
Reference in New Issue
Block a user