PERFORCE change 28353 for review
Peter Wemm
peter at FreeBSD.org
Sun Apr 6 12:44:16 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=28353
Change 28353 by peter at peter_overcee on 2003/04/06 12:43:52
HACK ALERT!
Affected files ...
.. //depot/projects/hammer/sys/boot/common/load_elf.c#7 edit
Differences ...
==== //depot/projects/hammer/sys/boot/common/load_elf.c#7 (text+ko) ====
@@ -41,6 +41,12 @@
#define COPYOUT(s,d,l) archsw.arch_copyout((vm_offset_t)(s), d, l)
+#if defined(__i386__) && __ELF_WORD_SIZE == 64
+#undef ELF_TARG_CLASS
+#undef ELF_TARG_MACH
+#define ELF_TARG_CLASS ELFCLASS64
+#define ELF_TARG_MACH EM_X86_64
+#endif
typedef struct elf_file {
Elf_Phdr *ph;
More information about the p4-projects
mailing list