[Bug 49139] Regression: Wine crashes on startup on FreeBSD >= 5.7
WineHQ Bugzilla
wine-bugs at winehq.org
Sat May 16 19:27:34 CDT 2020
https://bugs.winehq.org/show_bug.cgi?id=49139
--- Comment #7 from Damjan Jovanovic <damjan.jov at gmail.com> ---
Patching FreeBSD's dynamic linker as per my earlier option 2 (just like how
NetBSD did) gets Wine working again. Option 1 would alternatively be to remove
the conditional "#ifdefs __mips__" around l_offs, here and in
/usr/include/sys/link_elf.h, thus providing l_offs on all platforms, then patch
Wine to use it.
If Wine is going to make GNU-compatible dlinfo() a requirement, then this
should be RESOLVED NOTOURBUG and fixed upstream?
diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c
index 2d15560fb908..647626e3a41d 100644
--- a/libexec/rtld-elf/rtld.c
+++ b/libexec/rtld-elf/rtld.c
@@ -3951,7 +3951,7 @@ linkmap_add(Obj_Entry *obj)
struct link_map *prev;
obj->linkmap.l_name = obj->path;
- obj->linkmap.l_addr = obj->mapbase;
+ obj->linkmap.l_addr = obj->relocbase;
obj->linkmap.l_ld = obj->dynamic;
#ifdef __mips__
/* GDB needs load offset on MIPS to use the symbols */
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list