Linux MIPS Architecture development
 help / color / mirror / Atom feed
* modules fail to load for 64bit kernel with 32bit ELF format
@ 2005-08-03 18:17 Dave Johnson
  2005-08-03 20:21 ` Thiemo Seufer
  0 siblings, 1 reply; 2+ messages in thread
From: Dave Johnson @ 2005-08-03 18:17 UTC (permalink / raw)
  To: linux-mips


Building for 64bit kernel with 32bit ELF format produces the correct
object files for loading, but attempting to load them produces
ENOEXEC.

This is because the object file is failing ELF header checks in
load_module().

Elf_Ehdr in include/asm-mips/module.h is being defined as Elf64_Ehdr
based on CONFIG_MIPS64 instead of CONFIG_BUILD_ELF64.

elf_check_arch() also needs some fixing in include/asm-mips/elf.h as
it too is invoked from load_module(), however elf_check_arch() is also
used in binfmt_elf*.c.

Simply changing the defines produces loads of warnings due to casting
pointers around in module.c. Any suggestions on the best way to fix
this?

-- 
Dave Johnson
Starent Networks

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-08-03 20:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-03 18:17 modules fail to load for 64bit kernel with 32bit ELF format Dave Johnson
2005-08-03 20:21 ` Thiemo Seufer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox