From owner-freebsd-ppc@freebsd.org Tue Apr 3 00:03:56 2018 Return-Path: Delivered-To: freebsd-ppc@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 01F68F6F23E for ; Tue, 3 Apr 2018 00:03:56 +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 9412C7A14C for ; Tue, 3 Apr 2018 00:03:55 +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 E2AFB1323F for ; Tue, 3 Apr 2018 00:03:54 +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 w3303sp3090899 for ; Tue, 3 Apr 2018 00:03:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3303s61090891 for freebsd-ppc@FreeBSD.org; Tue, 3 Apr 2018 00:03:54 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: freebsd-ppc@FreeBSD.org Subject: [Bug 227093] powerpc64/pseries: Symbol table not relocated Date: Tue, 03 Apr 2018 00:03:54 +0000 X-Bugzilla-Reason: CC 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: breno.leitao@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: breno.leitao@gmail.com X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords 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-ppc@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2018 00:03:56 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227093 Breno Leitao changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|patch | --- Comment #2 from Breno Leitao --- Hi Nathan, This patch shouldn't be considered to be applied. This is just a first demonstration on how to solve this issue in a hackish way. We definitely ne= ed to fix the debug symbol table. Regarding your proposal, it didn't help either, since I still see the follo= wing stack when I run [1] 0xe000000000318da0: at 0xc00000000067bd4c 0xe000000000318ed0: at .dump+0x2c 0xe000000000318f50: at .handler+0x3c 0xe000000000318fd0: at 0xc0000000006001e8 0xe000000000319070: at 0xc0000000005f1d60 0xe000000000319450: at 0xc0000000005f2588 0xe000000000319510: at 0xc0000000005f26f4 0xe0000000003195b0: at 0xc0000000009ca550 0xe000000000319770: at 0xc0000000009bf418 0xe000000000319810: user SC trap by 0x8100daef8: srr1=3D0x800000000000f032 r1=3D0x3fffffffffffbd90 cr=3D0x44224044 xer=3D0x20000000 ctr=3D= 0x8100daef0 r2=3D0x810258e50 Looking further at the code, it seems that the linker_kernel_file->address = is not affecting the debug symbols st_value field at all, that explains why th= ey are not being relocated. For now, I am trying to relocate the whole debug symbol table manually to s= ee if that fixes the problem. [1] https://github.com/leitao/freebsd_modules/tree/master/dump_stack --=20 You are receiving this mail because: You are on the CC list for the bug.=