From owner-freebsd-bugs@freebsd.org Tue Oct 2 21:03:17 2018 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5558E10ACE07 for ; Tue, 2 Oct 2018 21:03:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id E71617C7D0 for ; Tue, 2 Oct 2018 21:03:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id ABDDA10ACE04; Tue, 2 Oct 2018 21:03:16 +0000 (UTC) Delivered-To: bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 715AF10ACE01 for ; Tue, 2 Oct 2018 21:03:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 028D97C7CB for ; Tue, 2 Oct 2018 21:03:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 0C1171E716 for ; Tue, 2 Oct 2018 21:03:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w92L3EN0089431 for ; Tue, 2 Oct 2018 21:03:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w92L3E1V089430 for bugs@FreeBSD.org; Tue, 2 Oct 2018 21:03:14 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 231887] kldxref reports 'Bad address' for mips64el modules Date: Tue, 02 Oct 2018 21:03:14 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Oct 2018 21:03:17 -0000 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.=