[Top] [All Lists]

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

To: Andrew Morton <>
Subject: Re: [PATCH] Fix offset2lib issue for x86*, ARM*, PowerPC and MIPS
From: David Daney <>
Date: Thu, 26 Feb 2015 14:43:21 -0800
Cc: Ingo Molnar <>, Hector Marco Gisbert <>, Kees Cook <>, LKML <>, ismael Ripoll <>, "" <>, "" <>, Linux MIPS Mailing List <>,
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; 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: <>
List-archive: <>
List-help: <>
List-id: linux-mips <>
List-owner: <>
List-post: <>
List-software: Ecartis version 1.0.0
List-subscribe: <>
List-unsubscribe: <>
Original-recipient: rfc822;
References: <> <> <> <> <>
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<>
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"<>
Cc: Benjamin Herrenschmidt<>
Cc: Catalin Marinas<>
Cc: Hector Marco Gisbert<>
Cc: Hector Marco-Gisbert<>
Cc: Ingo Molnar<>
Cc: Ismael Ripoll<>
Cc: Kees Cook<>
Cc: Ralf Baechle<>
Cc: Russell King<>
Cc: Thomas Gleixner<>
Cc: Will Deacon<>
Signed-off-by: Andrew Morton<>
diff -puN 
+++ 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>