From bf942fc22858370dd378343aa5b36e6ec8fb39e6 Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Tue, 18 Oct 2016 11:37:27 +0200 Subject: [PATCH] ksupport: adapt to dyld_load() --- artiq/runtime/ksupport.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/artiq/runtime/ksupport.c b/artiq/runtime/ksupport.c index 8236166d2..bd99ced68 100644 --- a/artiq/runtime/ksupport.c +++ b/artiq/runtime/ksupport.c @@ -333,7 +333,8 @@ int dl_iterate_phdr (int (*callback)(struct dl_phdr_info *, size_t, void *), voi return retval; } -static Elf32_Addr resolve_runtime_export(const char *name) +static Elf32_Addr resolve_runtime_export(void *resolve_data, + const char *name) { const struct symbol *sym = runtime_exports; while(sym->name) { @@ -397,7 +398,7 @@ int main(void) if(request->library != NULL) { if(!dyld_load(request->library, KERNELCPU_PAYLOAD_ADDRESS, - resolve_runtime_export, request->library_info, + resolve_runtime_export, NULL, request->library_info, &load_reply.error)) { mailbox_send(&load_reply); while(1);