linux-mips
[Top] [All Lists]

Re: [PATCH v1 1/5] scripts: Add sortextable to sort the kernel's excepti

To: David Daney <david.s.daney@gmail.com>
Subject: Re: [PATCH v1 1/5] scripts: Add sortextable to sort the kernel's exception table.
From: Linus Torvalds <torvalds@linux-foundation.org>
Date: Thu, 19 Apr 2012 20:31:26 -0700
Cc: "H. Peter Anvin" <hpa@zytor.com>, David Daney <ddaney.cavm@gmail.com>, Ralf Baechle <ralf@linux-mips.org>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, x86@kernel.org, Michal Marek <mmarek@suse.cz>, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, Andrew Morton <akpm@linux-foundation.org>, David Daney <david.daney@cavium.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=8FwXxm+WvxrMAhBYvHruxaW+jhinBcJb69k6moG6XOY=; b=n7wcdRY1tQDd/nQGHdm0jE/A6Rnbkt16CICUwbw3yOSVFSLtxHKaFGDCiyaPsq/Vn0 ci2Vehqti7vQpDTgTu0n0KXuOgseosas582phSvWggAUdc3TLs+ObmpjOX+f8RKx9X0U NcrUI9Eoe+1Y5xBJM+6fqgec4zwLs4SPWSmCW1Y46sF4DQxZZQXNCbZqBwV+uk1gQxhM 2T5iWSZpne+TFqLXz/dATP9obmd0NFjCZ6kkCSLYbHkyfnrFVnZblW0hesf2ykhdSV5F rA+VZiMpG+s71/ogQtrLGVZs7Fie7V2ZzCL/exb/nJIdo0y7zlamr4G+9nlvelW3pgOf xiHw==
In-reply-to: <4F90D564.3090508@gmail.com>
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>
Sender: linux-mips-bounce@linux-mips.org
On Thu, Apr 19, 2012 at 8:17 PM, David Daney <david.s.daney@gmail.com> wrote:
>
> I hadn't considered that the image was relocatable.  Our MIPS kernels never
> have relocations.
>
> I am working on a version of this that handles the relocations.  It
> shouldn't be too difficult.

It might be better to just make the rule be that we don't have
relocations there - make everything relative to the start of the code
segment or something.

On x86, we already use that _ASM_EXTABLE() macro to hide the
differences between x86-64 and x86-32. So it should be be somewhat
easy to make that same macro make it relative to the code start, and
at the same time also make the exception table perhaps be two 32-bit
words rather than two pointers.

So it would shrink the exception table and avoid relocations at the
same time. Win-win. No?

                      Linus

<Prev in Thread] Current Thread [Next in Thread>