insmod -m gives segmentation fault

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi
  I am having a loadable module driver_mod.o If I load
it without -m then the driver loads successfully. But
if I load it with -m I get Segmentation fault:
root@xxxxxxxxxxxx:/home/modutils-2.4.27/insmod#
./insmod -m ../../driver_mod.o
Sections:       Size      Address   Align
.this           00000060  12340000  2**2
.text           00005570  12340060  2**4
.fixup          00000034  123455d0  2**0
.reginfo        00000018  12345604  2**2
.rodata         00001a90  12345620  2**4
__ex_table      00000028  123470b0  2**2
.kstrtab        0000067d  123470d8  2**0
__ksymtab       000003a8  12347758  2**2
__archdata      00000000  12347b00  2**4
.data           00000080  12347b00  2**4
.sbss           00002c58  12347b80  2**4
.bss            00000170  1234a7e0  2**4

Symbols:
Segmentation fault

I am using 2.4.27 version of insmod utility. The
loadable module is compiled with following options:
-mtune=r4600 -mips2 -fno-pic -mno-abicalls
-mlong-calls -fno-strict-aliasing  -D__KERNEL__
-DMODULE  -DLINUX -D_REENTRANT -g -O2 -fno-builtin
-Werror -Wall -Wpointer-arith -Wwrite-strings
-Wstrict-prototypes -Wuninitialized -Wswitch -Wcomment
-Wformat

Any idea why it is dumping core?

Thanks in advance
Kasturi



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux