diff --git a/dlls/ntdll/unix/loader.c b/dlls/ntdll/unix/loader.c index 61c8f5e18f5..f17b319b9ac 100644 --- a/dlls/ntdll/unix/loader.c +++ b/dlls/ntdll/unix/loader.c @@ -1417,7 +1417,7 @@ found: #ifdef __FreeBSD__ /* On older FreeBSD versions, l_addr was the absolute load address, now it's the relocation offset. */ - if (!dlsym(RTLD_DEFAULT, "_rtld_version_laddr_offset")) + if (offsetof(struct link_map, l_addr) == 0) if (!get_relocbase(map->l_addr, &relocbase)) return; #endif switch (dyn->d_tag)