All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: Busybox v0.60.2 insmod gives segmentation fault without any m essages when trying to load a loadable module
@ 2004-08-17  7:24 Marcus Gustafsson
  2004-08-17 18:08 ` Ralf Baechle
  0 siblings, 1 reply; 4+ messages in thread
From: Marcus Gustafsson @ 2004-08-17  7:24 UTC (permalink / raw)
  To: linux-mips


> Manish Lohani wrote:
> > I have a driver loadable module which i am compiling with 
> the same gcc
> > flags as used to compile a kernel for a MIPS R5432 based NEC board.
> > 
> > On the development machine, to compile files driver1.c and 
> driver2.c:
> > $ mips_fp_le-gcc -fomit-frame-pointer -fno-strict-aliasing -G 0
> > -mno-abicalls -fno-pic -pipe -mtune=r5000 -mlong-calls 
> -mips2 -Wall -c
> > driver1.c
> > 
> > $mips_fp_le-ld -r -o driver --printmap --cref driver1.o driver2.o
> > 
> > mips_fp_le-gcc (GCC) version 3.3.1
> > mips_fp_le-ld (GNU ld) version 2.14
> > 
> > I have Busybox v0.60.2 on the target.
> > 
> > On the target:
> > # insmod ./driver
> > Using driver
> > Segmentation fault
> > #
> > 
> > Does anybody have any suggestions as to what could be wrong?
> > 
> 
> BusyBox0.60.x's insmod does not work with gcc-3.3 and above.
> 
> I use a patched version of the real insmod:
> 
> # insmod --version
> insmod version 2.4.25
> 
> I forget where I put the patch, but the insmod author told me that the
> patches were in a later version.  So if I were you, I would 
> use version
> 2.4.26 or higher.
> 
> David Daney.

Im using gcc-3.3.3 and busybox-0.60.5 and insmod works if I strip the debug
symbols from the module.

/Marcus Gustafsson

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

* Re: Busybox v0.60.2 insmod gives segmentation fault without any m essages when trying to load a loadable module
  2004-08-17  7:24 Busybox v0.60.2 insmod gives segmentation fault without any m essages when trying to load a loadable module Marcus Gustafsson
@ 2004-08-17 18:08 ` Ralf Baechle
  2004-08-17 19:49   ` David Daney
  0 siblings, 1 reply; 4+ messages in thread
From: Ralf Baechle @ 2004-08-17 18:08 UTC (permalink / raw)
  To: Marcus Gustafsson; +Cc: linux-mips

On Tue, Aug 17, 2004 at 09:24:49AM +0200, Marcus Gustafsson wrote:

> Im using gcc-3.3.3 and busybox-0.60.5 and insmod works if I strip the debug
> symbols from the module.

Seems that insmod is derived from an awfully old version from kernel.org;
this bug was fixed years ago.

  Ralf

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

* Re: Busybox v0.60.2 insmod gives segmentation fault without any m essages when trying to load a loadable module
  2004-08-17 18:08 ` Ralf Baechle
@ 2004-08-17 19:49   ` David Daney
  2004-08-17 22:24     ` Ralf Baechle
  0 siblings, 1 reply; 4+ messages in thread
From: David Daney @ 2004-08-17 19:49 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: Marcus Gustafsson, linux-mips

Ralf Baechle wrote:
> On Tue, Aug 17, 2004 at 09:24:49AM +0200, Marcus Gustafsson wrote:
> 
> 
>>Im using gcc-3.3.3 and busybox-0.60.5 and insmod works if I strip the debug
>>symbols from the module.
> 
> 
> Seems that insmod is derived from an awfully old version from kernel.org;
> this bug was fixed years ago.
> 

GCC 3.3 introduced several new debugging information sections.  The
ability of insmod to handle these new sections was not added until
around October 2003 (to my best recollection).

David Daney.

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

* Re: Busybox v0.60.2 insmod gives segmentation fault without any m essages when trying to load a loadable module
  2004-08-17 19:49   ` David Daney
@ 2004-08-17 22:24     ` Ralf Baechle
  0 siblings, 0 replies; 4+ messages in thread
From: Ralf Baechle @ 2004-08-17 22:24 UTC (permalink / raw)
  To: David Daney; +Cc: Marcus Gustafsson, linux-mips

On Tue, Aug 17, 2004 at 12:49:08PM -0700, David Daney wrote:

> GCC 3.3 introduced several new debugging information sections.  The
> ability of insmod to handle these new sections was not added until
> around October 2003 (to my best recollection).

I know, around '97 I wrote the code that did reject the DWARF sections :-)

  Ralf

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

end of thread, other threads:[~2004-08-17 22:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-17  7:24 Busybox v0.60.2 insmod gives segmentation fault without any m essages when trying to load a loadable module Marcus Gustafsson
2004-08-17 18:08 ` Ralf Baechle
2004-08-17 19:49   ` David Daney
2004-08-17 22:24     ` Ralf Baechle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.