Skip to content

Commit d56057e

Browse files
committed
removed unnecesary auxv iteration
1 parent d266fbc commit d56057e

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

shiva.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -198,21 +198,6 @@ shiva_interp_mode(struct shiva_ctx *ctx)
198198
ctx, elf_pathname(&ctx->ldsobj));
199199
return false;
200200
}
201-
/*
202-
* Get the entry point of the target executable. Stored in AT_ENTRY
203-
* of the auxiliary vector.
204-
*/
205-
if (shiva_auxv_iterator_init(ctx, &auxv_iter, NULL) == false) {
206-
fprintf(stderr, "shiva_auxv_iterator_init failed\n");
207-
return false;
208-
}
209-
while (shiva_auxv_iterator_next(&auxv_iter, &auxv_entry) == SHIVA_ITER_OK) {
210-
if (auxv_entry.type == AT_ENTRY) {
211-
entry_point = auxv_entry.value;
212-
shiva_debug("[2] Entry point: %#lx\n", entry_point);
213-
break;
214-
}
215-
}
216201
/*
217202
* We must create a new stack before passing control to LDSO. Normally in interpreter
218203
* mode it wouldn't matter since we can just re-use the stack, auxv, etc. In our case

0 commit comments

Comments
 (0)