[Bug 231887] kldxref reports 'Bad address' for mips64el modules
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Oct 2 21:03:17 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231887
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 at FreeBSD.org
Reporter: emaste at freebsd.org
CC: sbruno at FreeBSD.org
After the objcopy fix in r339083 (PR 231790) I can kldload modules on mips64el,
but kldxref when it runs reports:
root@:~ # kldxref -v /boot/kernel/
/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
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list