From owner-freebsd-mips@freebsd.org Mon Oct 1 11:57:23 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 9DD0210B4BB0 for ; Mon, 1 Oct 2018 11:57:23 +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 24DB273121 for ; Mon, 1 Oct 2018 11:57:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id D8BD410B4BAF; Mon, 1 Oct 2018 11:57:22 +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 B6CCC10B4BAA for ; Mon, 1 Oct 2018 11:57:22 +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 580687311E for ; Mon, 1 Oct 2018 11:57:22 +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 9872B4ED2 for ; Mon, 1 Oct 2018 11:57:21 +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 w91BvLHG007146 for ; Mon, 1 Oct 2018 11:57:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w91BvLhs007145 for mips@FreeBSD.org; Mon, 1 Oct 2018 11:57:21 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] mips64: attempting to load a module results in relocation errors and crash Date: Mon, 01 Oct 2018 11:57:21 +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: 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 11:57:23 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231790 --- Comment #3 from Ed Maste --- Parsing the bad one readelf emits very many errors: readelf: Error: bad symbol index: 0000011b in reloc And relocation differences: =E2=94=82 @@ -1,36543 +1,36543 @@=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 =E2=94=82=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 =E2=94=82 Relocation section '.rela.text' at offset 0x21508 contains 11885= entries:=20=20=20=20 =E2=94=82 Offset Info Type Symbo= l's Value=20 Symbol's Name + Addend =E2=94=82 -0000000000000018 000000030000000b R_MIPS_CALL16 000000= 0000000000 .rodata.str1.8 + 0 =E2=94=82 +0000000000000018 000000020000001d R_MIPS_HIGHEST 000000= 0000000000 .rodata + 0 =E2=94=82 Type2: R_MIPS_NONE=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 =E2=94=82 Type3: R_MIPS_NONE=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 =E2=94=82 -000000000000001c 0000000300000000 R_MIPS_NONE 000000= 0000000000 .rodata.str1.8 + 0 =E2=94=82 +000000000000001c 0000000200000005 R_MIPS_HI16 000000= 0000000000 .rodata + 0 =E2=94=82 Type2: R_MIPS_NONE=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 =E2=94=82 Type3: R_MIPS_NONE=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 =E2=94=82 -0000000000000020 000000030000000a R_MIPS_PC16 000000= 0000000000 .rodata.str1.8 + 0 =E2=94=82 +0000000000000020 000000020000001c R_MIPS_HIGHER 000000= 0000000000 .rodata + 0 =E2=94=82 Type2: R_MIPS_NONE=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 =E2=94=82 Type3: R_MIPS_NONE=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 =E2=94=82 -0000000000000024 0000000300000000 R_MIPS_NONE 000000= 0000000000 .rodata.str1.8 + 0 =E2=94=82 +0000000000000024 0000000200000006 R_MIPS_LO16 000000= 0000000000 .rodata + 0 =E2=94=82 Type2: R_MIPS_NONE=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 =E2=94=82 Type3: R_MIPS_NONE=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 =E2=94=82 -0000000000000040 000000040000000b R_MIPS_CALL16 000000= 0000000000 .data + 0 =E2=94=82 +0000000000000040 000000030000001d R_MIPS_HIGHEST 000000= 0000000000 .rodata.str1.8 + 0 =E2=94=82 Type2: R_MIPS_NONE=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 =E2=94=82 Type3: R_MIPS_NONE=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 =E2=94=82 -0000000000000044 0000000400000000 R_MIPS_NONE 000000= 0000000000 .data + 0 =E2=94=82 +0000000000000044 0000000300000005 R_MIPS_HI16 000000= 0000000000 .rodata.str1.8 + 0 =E2=94=82 Type2: R_MIPS_NONE=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 =E2=94=82 Type3: R_MIPS_NONE=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 =E2=94=82 -0000000000000048 000000040000000a R_MIPS_PC16 000000= 0000000000 .data + 0 =E2=94=82 +0000000000000048 000000030000001c R_MIPS_HIGHER 000000= 0000000000 .rodata.str1.8 + 0 =E2=94=82 Type2: R_MIPS_NONE=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 =E2=94=82 Type3: R_MIPS_NONE=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 =E2=94=82 -000000000000004c 0000000400000000 R_MIPS_NONE 000000= 0000000000 .data + 0 =E2=94=82 +000000000000004c 0000000300000006 R_MIPS_LO16 000000= 0000000000 .rodata.str1.8 + 0 =E2=94=82 Type2: R_MIPS_NONE=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 =E2=94=82 Type3: R_MIPS_NONE=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 =E2=94=82 -0000000000000060 000000040000000b R_MIPS_CALL16 000000= 0000000000 .data + 8 =E2=94=82 +0000000000000060 000000030000001d R_MIPS_HIGHEST 000000= 0000000000 .rodata.str1.8 + 8 =E2=94=82 Type2: R_MIPS_NONE=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 =E2=94=82 Type3: R_MIPS_NONE=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 =E2=94=82 -0000000000000064 0000000400000000 R_MIPS_NONE 000000= 0000000000 .data + 8 =E2=94=82 +0000000000000064 0000000300000005 R_MIPS_HI16 000000= 0000000000 .rodata.str1.8 + 8 =E2=94=82 Type2: R_MIPS_NONE=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 =E2=94=82 Type3: R_MIPS_NONE=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 =E2=94=82 -0000000000000068 000000040000000a R_MIPS_PC16 000000= 0000000000 .data + 8 =E2=94=82 +0000000000000068 000000030000001c R_MIPS_HIGHER 000000= 0000000000 .rodata.str1.8 + 8 =E2=94=82 Type2: R_MIPS_NONE=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 =E2=94=82 Type3: R_MIPS_NONE=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 =E2=94=82 -000000000000006c 0000000400000000 R_MIPS_NONE 000000= 0000000000 .data + 8 =E2=94=82 +000000000000006c 0000000300000006 R_MIPS_LO16 000000= 0000000000 .rodata.str1.8 + 8 =E2=94=82 Type2: R_MIPS_NONE=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 =E2=94=82 Type3: R_MIPS_NONE=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 ... --=20 You are receiving this mail because: You are the assignee for the bug.=