Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755922AbdDMDqc (ORCPT ); Wed, 12 Apr 2017 23:46:32 -0400 Received: from gherkin.frus.com ([192.158.254.49]:49790 "EHLO gherkin.frus.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751750AbdDMDqa (ORCPT ); Wed, 12 Apr 2017 23:46:30 -0400 Date: Wed, 12 Apr 2017 22:46:28 -0500 From: Bob Tracy To: Michael Cree , Helge Deller , debian-alpha@lists.debian.org, linux-kernel@vger.kernel.org Subject: Re: [BUG] alpha: module xxx: Unknown relocation: 1 Message-ID: <20170413034628.GA14727@gherkin.frus.com> References: <20170410004755.GA22356@gherkin.frus.com> <20170410094250.gxcne7imso4u2vjx@tower> <20170411034242.GA27395@gherkin.frus.com> <20170411061232.bchlfc73lqx2z2cy@tower> <20170411215716.GA29795@gherkin.frus.com> <20170412025935.GA10065@gherkin.frus.com> <127df124-4000-d473-148a-8de03cc48cc9@gmx.de> <20170412073636.aak7onwt7b4furve@tower> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170412073636.aak7onwt7b4furve@tower> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1246 Lines: 28 On Wed, Apr 12, 2017 at 07:36:36PM +1200, Michael Cree wrote: > On Wed, Apr 12, 2017 at 07:57:52AM +0200, Helge Deller wrote: > > On 12.04.2017 04:59, Bob Tracy wrote: > > > Bottom line is, no kernel I've built since 4.9 can load a module. All > > > attempts to load a module result in the error message emitted by > > > "arch/alpha/kernel/module.c" as follows: > > > > > > module XXX: Unknown relocation: 1 > > > > I assume it's due this commmit "modversions: treat symbol CRCs as 32 bit quantities": > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=71810db27c1c853b335675bee335d893bc3d324b > > > > For parisc this patch solves it: > > parisc: support R_PARISC_SECREL32 relocation in modules > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5f655322b1ba4bd46e26e307d04098f9c84df764 > > > > > module XXX: Unknown relocation: 1 > > > > For alpha it seems you need to add similar code to handle R_ALPHA_REFLONG > > to apply_relocate_add() in arch/alpha/kernel/module.c > > Would the attached patch fix it? Untested because I don't see the > above issue. I'm up and running on 4.11.0-rc6. The patch works. Feel free to add me as the "Tested-by". Much appreciated! --Bob