linux-mips
[Top] [All Lists]

Re: [PATCH] Fix offset2lib issue for x86*, ARM*, PowerPC and MIPS

To: Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH] Fix offset2lib issue for x86*, ARM*, PowerPC and MIPS
From: David Daney <ddaney.cavm@gmail.com>
Date: Thu, 26 Feb 2015 14:43:21 -0800
Cc: Ingo Molnar <mingo@kernel.org>, Hector Marco Gisbert <hecmargi@upv.es>, Kees Cook <keescook@chromium.org>, LKML <linux-kernel@vger.kernel.org>, ismael Ripoll <iripoll@upv.es>, "x86@kernel.org" <x86@kernel.org>, "linux-arm-kernel@lists.infradead.org" <linux-arm-kernel@lists.infradead.org>, Linux MIPS Mailing List <linux-mips@linux-mips.org>, linuxppc-dev@lists.ozlabs.org
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=qVMJc6H1uZ1GtAMXjzXmnl+/FujOSjqvvy+qIxFrQpw=; b=C4U5yPUw7G+dSqkenxQduFVbO4ohX+uMFjBNk/mE310WT/yulO5gRG72ANFmHX9XqW YaJIYhopQgfcd0jFTkzuak7Xu+17t4k6MuX14S1DHWj43hwqwdmv+kQy4lVZIAnzHBvS TqM1bGBl1EmUSlzppa3dXdjnTVWgdC2KPWteJM2Ea19N8qWmtHmFNUsrMgXz7ThYWhEd qSEURZpH/H0sHwa7clWp5vy9ycu8zhe93qBcSjoZW2k/cLiWJxgBNZ4SocAYf/pqx6WV K36daw2hyGF7aqCUB74YIjltVoP3J7lBm7nda+ZPlwW3Qa1McIjfRh8v3lhf2LFtQcTx mocA==
In-reply-to: <20150226143815.09386fe280c7bd8797048bb2@linux-foundation.org>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <54EB735F.5030207@upv.es> <CAGXu5j+SBRcj+BGyxEwUzgKsB2fdzNiPY37Q=JTsf=-QbGwoGA@mail.gmail.com> <20150223205436.15133mg1kpyojyik@webmail.upv.es> <20150224073906.GA16422@gmail.com> <20150226143815.09386fe280c7bd8797048bb2@linux-foundation.org>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7
On 02/26/2015 02:38 PM, Andrew Morton wrote:
[...]

From: Andrew Morton<akpm@linux-foundation.org>
Subject: fix-offset2lib-issue-for-x86-arm-powerpc-and-mips-fix

Consolidate randomize_et_dyn() implementations into fs/binfmt_elf.c.

There doesn't seem to be a compile-time way of making randomize_et_dyn()
go away on architectures which don't need it, so mark it __weak to cause
it to be discarded at link time.

Cc: "H. Peter Anvin"<hpa@zytor.com>
Cc: Benjamin Herrenschmidt<benh@kernel.crashing.org>
Cc: Catalin Marinas<catalin.marinas@arm.com>
Cc: Hector Marco Gisbert<hecmargi@upv.es>
Cc: Hector Marco-Gisbert<hecmargi@upv.es>
Cc: Ingo Molnar<mingo@kernel.org>
Cc: Ismael Ripoll<iripoll@upv.es>
Cc: Kees Cook<keescook@chromium.org>
Cc: Ralf Baechle<ralf@linux-mips.org>
Cc: Russell King<rmk@arm.linux.org.uk>
Cc: Thomas Gleixner<tglx@linutronix.de>
Cc: Will Deacon<will.deacon@arm.com>
Signed-off-by: Andrew Morton<akpm@linux-foundation.org>
[...]
diff -puN 
arch/arm64/include/asm/elf.h~fix-offset2lib-issue-for-x86-arm-powerpc-and-mips-fix
 arch/arm64/include/asm/elf.h
--- 
a/arch/arm64/include/asm/elf.h~fix-offset2lib-issue-for-x86-arm-powerpc-and-mips-fix
+++ a/arch/arm64/include/asm/elf.h
@@ -1,5 +1,5 @@
  /*
- * Copyright (C) 2012 ARM Ltd.
+ * Copyright (C) 20q12 ARM Ltd.

This particular change looks like it may be a typo.

   *
   * This program is free software; you can redistribute it and/or modify
   * it under the terms of the GNU General Public License version 2 as


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