linux-mips
[Top] [All Lists]

Re: modutils bug? 'if' clause executes incorrectly

To: Keith Owens <kaos@melbourne.sgi.com>
Subject: Re: modutils bug? 'if' clause executes incorrectly
From: Ralf Baechle <ralf@oss.sgi.com>
Date: Wed, 11 Oct 2000 17:14:49 +0200
Cc: Cort Dougan <cort@fsmlabs.com>, linux-mips@oss.sgi.com, linux-mips@fnet.fr, Ralf Baechle <ralf@uni-koblenz.de>
In-reply-to: <9251.971242560@kao2.melbourne.sgi.com>; from kaos@melbourne.sgi.com on Wed, Oct 11, 2000 at 04:36:00PM +1100
References: <20001010224317.I733@hq.fsmlabs.com> <9251.971242560@kao2.melbourne.sgi.com>
Sender: owner-linux-mips@oss.sgi.com
Keith,

> >I'm finding that in a Linux/MIPS module the test case attached executes the
> >'if' clause in
> 
> Almost certainly nothing to do with modutils, insmod just relocates and
> loads the program.  The only possible modutil problems are an
> unexpected relocation being emitted by binutils or insmod not handling
> a valid relocation correctly.  Compile with -g then do "objdump -rS
> object.o".  What does the offending section of code look like,
> including the relocations?

For such occassions I would like to see some debugging functionality in
modutils which allows dumping the relocated disk image as it would be
loaded into the kernel into a disk image which then could be examined
with objdump etc. for potencial problems.

  Ralf

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