[Click] Has any one built click linux kernel module for 2.4.26 by gcc 4.0.0 (binutil 2.15.94.0.2.2-2)?

jaccheng at cisco.com jaccheng at cisco.com
Tue Sep 20 13:14:11 EDT 2005


Hi,
 
Has any one built click linux kernel module for 2.4.26 by gcc 4.0.0 ?
 
I can build the kernel and the module without any problem. But when I
try to load
the click.o, it gives me:
 
"click.o: can't handle sections of type 17 click.o"
 
I tried several including the latest modutils 2.4.27. But it gives the
same result.
 
I compared the "readelf -e click.o" output from two click.o, one buitl
by 2.96 and the 
other one built by 4.0.0.
 
2.96
ELF Header:
  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
  Class:                             ELF32
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              REL (Relocatable file)
  Machine:                           Intel 80386
  Version:                           0x1
  Entry point address:               0x0
  Start of program headers:          0 (bytes into file)
  Start of section headers:          945524 (bytes into file)
  Flags:                             0x0
  Size of this header:               52 (bytes)
  Size of program headers:           0 (bytes)
  Number of program headers:         0
  Size of section headers:           40 (bytes)
  Number of section headers:         2785
  Section header string table index: 2782
 
Section Headers:
  [Nr] Name              Type            Addr     Off    Size   ES Flg
Lk Inf Al
  [ 0]                   NULL            00000000 000000 000000 00
0   0  0
  [ 1] .text             PROGBITS        00000000 000034 09557c 00  AX
0   0  4
  [ 2] .rel.text         REL             00000000 14fd84 0255a0 08
2783   1 4
  [ 3] .gnu.linkonce.t._ PROGBITS        00000000 0955b0 000048 00  AX
0   0  4
  [ 4] .rel.gnu.linkonce REL             00000000 175324 000018 08
2783   3 4
  [ 5] .gnu.linkonce.t.t PROGBITS        00000000 0955f8 00000c 00  AX
0   0  4
  [ 6] .gnu.linkonce.t.v PROGBITS        00000000 095604 00000c 00  AX
0   0  4
  [ 7] .gnu.linkonce.t.p PROGBITS        00000000 095610 00000c 00  AX
0   0  4
 
4.0.0
ELF Header:
  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
  Class:                             ELF32
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              REL (Relocatable file)
  Machine:                           Intel 80386
  Version:                           0x1
  Entry point address:               0x0
  Start of program headers:          0 (bytes into file)
  Start of section headers:          927080 (bytes into file)
  Flags:                             0x0
  Size of this header:               52 (bytes)
  Size of program headers:           0 (bytes)
  Number of program headers:         0
  Size of section headers:           40 (bytes)
  Number of section headers:         4150
  Section header string table index: 4147
 
Section Headers:
  [Nr] Name              Type            Addr     Off    Size   ES Flg
Lk Inf Al
  [ 0]                   NULL            00000000 000000 000000 00
0   0  0
  [ 1] _ZTV6NameDB       GROUP           00000000 000034 000008 04
4148 331 4
  [ 2] _ZTV12StaticNameD GROUP           00000000 00003c 000008 04
4148 332 4
  [ 3] _ZTV13DynamicName GROUP           00000000 000044 000008 04
4148 333 4
  [ 4] _ZN13DynamicNameD GROUP           00000000 00004c 000008 04
4148 334
 
I guess the problem is the section type GROUP. Can anyone help me to
resolve this issue?
Thanks in advance.
 
--Jackie


More information about the click mailing list