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
This commit is contained in:
parent
e311eed538
commit
a191f77c15
|
@ -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
|
/* Compensate for a bug in dlsym() that gets the address wrong by
|
||||||
an offset (incorrect use of `link_bias'?): */
|
an offset (incorrect use of `link_bias'?): */
|
||||||
if (!adjustment_set) {
|
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"));
|
- (uintptr_t)dlsym(RTLD_DEFAULT, "rktio_dll_find_object"));
|
||||||
adjustment_set = 1;
|
adjustment_set = 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user