linux-mips
[Top] [All Lists]

Re: elf2ecoff problem

To: Keith Owens <kaos@ocs.com.au>
Subject: Re: elf2ecoff problem
From: Ralf Baechle <ralf@oss.sgi.com>
Date: Sun, 25 Mar 2001 05:35:54 +0200
Cc: jbglaw@lug-owl.de, linux-mips@oss.sgi.com, Harald Koerfgen <hkoerfg@web.de>
In-reply-to: <32583.985476116@ocs3.ocs-net>; from kaos@ocs.com.au on Sun, Mar 25, 2001 at 09:21:56AM +1000
References: <20010324221757.B9810@lug-owl.de> <32583.985476116@ocs3.ocs-net>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.2.5i
On Sun, Mar 25, 2001 at 09:21:56AM +1000, Keith Owens wrote:

> On Sat, 24 Mar 2001 22:17:58 +0100, 
> Jan-Benedict Glaw <jbglaw@lug-owl.de> wrote:
> >./elf2ecoff /home/jbglaw/kernel_src/work/mips_linux/linux/vmlinux 
> >vmlinux.ecoff -a
> >Non-contiguous data can't be converted.
> > 17 .modinfo      00000018  ffffffff802730a0  ffffffff802730a0  001700a0  
> > 2**2
> >                  CONTENTS, ALLOC, LOAD, READONLY, DATA
> 
> This may not be relevant but vmlinux should not have a .modinfo
> section.  .modinfo is only created when code is compiled with -DMODULE
> so why is it in vmlinux?
> 
> There was a recent change to the attributes of .modinfo, from CONTENTS,
> READONLY to CONTENTS, ALLOC, LOAD, READONLY, DATA, this change was to
> remove gcc warning messages.  insmod treats sections .modinfo and
> .modstring as special cases and turns off the SHF_ALLOC flag, elf2ecoff
> might need special processing for these sections.

The .modinfo section gets into vmlinux through drivers/tc/tc.o where it
gets created because include/asm-mips/dec/tcmodule.h defines the cpp
symbol MODULE; <linux/module.h> gets included after that and believing
this is a module compilation puts some stuff into .modinfo.

  Ralf

<Prev in Thread] Current Thread [Next in Thread>