From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751487Ab2DTE4m (ORCPT ); Fri, 20 Apr 2012 00:56:42 -0400 Received: from terminus.zytor.com ([198.137.202.10]:54686 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751103Ab2DTE4l (ORCPT ); Fri, 20 Apr 2012 00:56:41 -0400 Message-ID: <4F90EC19.7070103@zytor.com> Date: Thu, 19 Apr 2012 21:54:49 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 MIME-Version: 1.0 To: Linus Torvalds CC: David Daney , David Daney , Ralf Baechle , Thomas Gleixner , Ingo Molnar , x86@kernel.org, Michal Marek , linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, Andrew Morton , David Daney Subject: Re: [PATCH v1 1/5] scripts: Add sortextable to sort the kernel's exception table. References: <1334872799-14589-1-git-send-email-ddaney.cavm@gmail.com> <1334872799-14589-2-git-send-email-ddaney.cavm@gmail.com> <4F90BF8D.7030209@zytor.com> <4F90D564.3090508@gmail.com> <4F90DB37.9080702@zytor.com> <4F90EAC1.6070508@zytor.com> In-Reply-To: <4F90EAC1.6070508@zytor.com> X-Enigmail-Version: 1.4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/19/2012 09:49 PM, H. Peter Anvin wrote: > > Ah, apparently it is possible to generate relocations relative to the > start of the current section. > Nevermind... I'm wrong. The assembler will generate them but the linker will produce garbage. So I think using PC-relative relocations and have the postprocessor (or the sort in the module loader) convert them to section-relative makes sense... -hpa