Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Thiemo Seufer <ths@networkno.de>
To: Dave Johnson <djohnson+linuxmips@sw.starentnetworks.com>
Cc: linux-mips@linux-mips.org
Subject: Re: modules fail to load for 64bit kernel with 32bit ELF format
Date: Wed, 3 Aug 2005 22:21:54 +0200	[thread overview]
Message-ID: <20050803202154.GS29782@hattusa.textio> (raw)
In-Reply-To: <17137.2596.203177.705324@cortez.sw.starentnetworks.com>

Dave Johnson wrote:
> 
> 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?

The plan is to obsolete 64bit kernel in 32bit ELF and use 64bit ELF
with gcc -msym32 to get a similiar optimization.


Thiemo

      reply	other threads:[~2005-08-03 20:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050803202154.GS29782@hattusa.textio \
    --to=ths@networkno.de \
    --cc=djohnson+linuxmips@sw.starentnetworks.com \
    --cc=linux-mips@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox