Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Oct 2018 21:03:14 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 231887] kldxref reports 'Bad address' for mips64el modules
Message-ID:  <bug-231887-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231887

            Bug ID: 231887
           Summary: kldxref reports 'Bad address' for mips64el modules
           Product: Base System
           Version: CURRENT
          Hardware: mips
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: emaste@freebsd.org
                CC: sbruno@FreeBSD.org

After the objcopy fix in r339083 (PR 231790) I can kldload modules on mips6=
4el,
but kldxref when it runs reports:

root@:~ # kldxref -v /boot/kernel/=20
/boot/kernel/accf_data.ko
kldxref: ef_obj_seg_read_string(/boot/kernel/accf_data.ko): bad offset
(948200f2)
kldxref: error while reading /boot/kernel/accf_data.ko: Bad address
/boot/kernel/accf_dns.ko
kldxref: ef_obj_seg_read_string(/boot/kernel/accf_dns.ko): bad offset
(8c8201e0)
kldxref: error while reading /boot/kernel/accf_dns.ko: Bad address
/boot/kernel/accf_http.ko
kldxref: ef_obj_seg_read_string(/boot/kernel/accf_http.ko): bad offset
(3e00008)
kldxref: error while reading /boot/kernel/accf_http.ko: Bad address
/boot/kernel/acl_nfs4.ko
kldxref: ef_obj_seg_read_string(/boot/kernel/acl_nfs4.ko): bad offset
(8c8300042402ffff)
...

root@:~ # readelf -x set_modmetadata_set /boot/kernel/accf_data.ko

Hex dump of section 'set_modmetadata_set':
  0x00000000 00000000 00000000 00000000 00000000 ................

root@:~ # readelf -r /boot/kernel/accf_data.ko | grep -A 8 set_modmeta
Relocation section with addend (.relaset_modmetadata_set):
r_offset     r_info       r_type              st_value         st_name +
r_addend
000000000000 000300000012 R_MIPS_64           0000000000000000 .data + 18
                   Type2: R_MIPS_NONE
                   Type3: R_MIPS_NONE
000000000008 000300000012 R_MIPS_64           0000000000000000 .data + 30
                   Type2: R_MIPS_NONE
                   Type3: R_MIPS_NONE

root@:~ # readelf -S /boot/kernel/accf_data.ko
There are 19 section headers, starting at offset 0x880:

Section Headers:
  [Nr] Name              Type             Address           Offset
       Size              EntSize          Flags  Link  Info  Align
...
  [ 6] .data             PROGBITS         0000000000000000  000000e0
       00000000000000a0  0000000000000000  WA       0     0     16

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-231887-227>