From a191f77c15250521df751e86c41c0e71fc6c6f78 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Wed, 11 Dec 2019 15:12:11 -0700 Subject: [PATCH] rktio: fix Android workaround When dynamic-library support moved to rktio, only one of two references to (an arbitrary exported) function was updated. Closes #2947 --- racket/src/rktio/rktio_dll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/racket/src/rktio/rktio_dll.c b/racket/src/rktio/rktio_dll.c index 81948e1909..68105de3e6 100644 --- a/racket/src/rktio/rktio_dll.c +++ b/racket/src/rktio/rktio_dll.c @@ -310,7 +310,7 @@ void *rktio_dll_find_object(rktio_t *rktio, rktio_dll_t *dll, rktio_const_string /* Compensate for a bug in dlsym() that gets the address wrong by an offset (incorrect use of `link_bias'?): */ if (!adjustment_set) { - adjustment = ((uintptr_t)scheme_start_atomic_no_break + adjustment = ((uintptr_t)rktio_dll_find_object - (uintptr_t)dlsym(RTLD_DEFAULT, "rktio_dll_find_object")); adjustment_set = 1; }