From owner-freebsd-mips@freebsd.org Mon Oct 1 18:40:18 2018 Return-Path: Delivered-To: freebsd-mips@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 2BB5B10A6E38 for ; Mon, 1 Oct 2018 18:40:18 +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 BC22D8697C for ; Mon, 1 Oct 2018 18:40:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 81AF410A6E35; Mon, 1 Oct 2018 18:40:17 +0000 (UTC) Delivered-To: mips@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 7064410A6E34 for ; Mon, 1 Oct 2018 18:40:17 +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 0B4A586977 for ; Mon, 1 Oct 2018 18:40:17 +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 3F50310953 for ; Mon, 1 Oct 2018 18:40:16 +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 w91IeGlO063081 for ; Mon, 1 Oct 2018 18:40:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w91IeGth063080 for mips@FreeBSD.org; Mon, 1 Oct 2018 18:40:16 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: mips@FreeBSD.org Subject: [Bug 231790] objcopy: corrupts relocation entries in big-endian mips64 output when adjusting symbol indexes Date: Mon, 01 Oct 2018 18:40:16 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: regression 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: mips@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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-mips@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Oct 2018 18:40:18 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231790 --- Comment #6 from Ed Maste --- As far as I can tell readelf is broken before and after r338478 on BE mips6= 4. It looks like it is indeed a false-positive invocation of the le conversion= - a breakpoint on _libelf_mips64el_r_info_tom when running "objcopy --strip-deb= ug geom_mirror.ko.works out" stops on: * thread #1, name =3D 'objcopy', stop reason =3D breakpoint 2.1 * frame #0: 0x000000528b50f5c4 libelf.so.2`_libelf_mips64el_r_info_tom(r_info=3D8589934621) at gelf_mips64el.c:74 frame #1: 0x000000528b50e9f2 libelf.so.2`gelf_getrela(ed=3D, ndx=3D, dst=3D0x00007fffffffe400) at gelf_rela.c:97 frame #2: 0x00000000002124b7 objcopy`copy_content [inlined] update_reloc(ecp=3D) at sections.c:832 frame #3: 0x00000000002123c1 objcopy`copy_content(ecp=3D) = at sections.c:604 frame #4: 0x000000000020db67 objcopy`create_elf(ecp=3D0x000000080087700= 0) at main.c:389 frame #5: 0x000000000020f0a3 objcopy`create_file(ecp=3D0x00000008008770= 00, src=3D"geom_mirror.ko.works", dst=3D"geom_mirror.ko.works") at main.c:705 frame #6: 0x000000000020ec81 objcopy`main [inlined] elfcopy_main(ecp=3D, argc=3D, argv=3D) at main.c:1028 frame #7: 0x000000000020ec79 objcopy`main(argc=3D4, argv=3D0x00007fffff= ffe750) at main.c:1597 frame #8: 0x0000000000209095 objcopy`_start(ap=3D, cleanup=3D) at crt1.c:74 --=20 You are receiving this mail because: You are the assignee for the bug.=