Skip to content

Commit

Permalink
wip dyld
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Jul 16, 2023
1 parent 8a226f9 commit d90de57
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/dyld_plt.c
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
#include <assert.h>

#include "dyld.h"
#include "dyld_plt.h"
#include "exec_context.h"

int
dyld_plt(struct exec_context *ctx, struct host_instance *hi,
const struct functype *ft, const struct cell *params,
struct cell *results)
{
/* resolve the index */
struct plt *plt = (struct plt *)hi;
struct dyld_plt *plt = (void *)hi;
if (plt->finst == NULL) {
ret = dyld_symbol_resolve(dyld, plt->sym);
ret = dyld_symbol_resolve(dyld, plt->refobj, plt->sym);

ret = table_get_func_indirect(ctx, tinst, ft,
plt->idx_in_table, &plt->finst);
Expand Down

0 comments on commit d90de57

Please sign in to comment.