On Thu, 11 Nov 2010 21:26:40 +0100, Adam wrote:
> Notice that is "Elf32" instead of "Elf64".
Somehow, we managed to get
> the wrong word size in our definition of ElfW. Is sys/exec_elf.h
> supposed to provide that definition? See lines 477 to 499 in
> unexelf.c.
_LP64 is 1, so perhaps OpenBSD should be somehow included in lines
481-487, to take care of it?
Maybe something like this:
--- a/src/unexelf.c Tue Nov 02 20:19:39 2010 +0100
+++ b/src/unexelf.c Thu Nov 11 23:00:20 2010 +0100
@@ -478,7 +478,7 @@
# include <sys/exec_elf.h>
#endif
-#if defined(__FreeBSD__) && (defined(__alpha__) || defined(_LP64))
+#if (defined(__FreeBSD__) && (defined(__alpha__) || defined(_LP64))) ||
(defined(__OpenBSD__) && defined(_LP64))
# ifdef __STDC__
# define ElfW(type) Elf64_##type
# else
(I am merely guessing; I have no clue, so don't hesitate to hit me with
a cluebat.)
Best regards,
Adam
--
"Grr. Very annoyingly non-obvious." Adam Sjøgren
asjo(a)koldfront.dk
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta