From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ie0-x232.google.com (mail-ie0-x232.google.com [IPv6:2607:f8b0:4001:c03::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 7222D1A005A for ; Fri, 27 Feb 2015 09:43:28 +1100 (AEDT) Received: by iecrl12 with SMTP id rl12so22428239iec.4 for ; Thu, 26 Feb 2015 14:43:24 -0800 (PST) Message-ID: <54EFA189.3010509@gmail.com> Date: Thu, 26 Feb 2015 14:43:21 -0800 From: David Daney MIME-Version: 1.0 To: Andrew Morton Subject: Re: [PATCH] Fix offset2lib issue for x86*, ARM*, PowerPC and MIPS References: <54EB735F.5030207@upv.es> <20150223205436.15133mg1kpyojyik@webmail.upv.es> <20150224073906.GA16422@gmail.com> <20150226143815.09386fe280c7bd8797048bb2@linux-foundation.org> In-Reply-To: <20150226143815.09386fe280c7bd8797048bb2@linux-foundation.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Cc: Linux MIPS Mailing List , Kees Cook , "x86@kernel.org" , Hector Marco Gisbert , LKML , "linux-arm-kernel@lists.infradead.org" , linuxppc-dev@lists.ozlabs.org, Ingo Molnar , ismael Ripoll List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 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