Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756134AbYFQKTS (ORCPT ); Tue, 17 Jun 2008 06:19:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753702AbYFQKTG (ORCPT ); Tue, 17 Jun 2008 06:19:06 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:35597 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751353AbYFQKTE (ORCPT ); Tue, 17 Jun 2008 06:19:04 -0400 Subject: Re: architectures with ARCH_SUPPORTS_AOUT but no binfmt_aout From: David Woodhouse To: Adrian Bunk Cc: Peter Korsgaard , linux-kernel@vger.kernel.org, sam@ravnborg.org, dhowells@redhat.com, andi@firstfloor.org, "Kirill A. Shutemov" , ysato@users.sourceforge.jp, takata@linux-m32r.org, linux-m32r@ml.linux-m32r.org, kyle@mcmartin.ca, matthew@wil.cx, grundler@parisc-linux.org, linux-parisc@vger.kernel.org, lethal@linux-sh.org, linux-sh@vger.kernel.org, linux-arch@vger.kernel.org In-Reply-To: <20080617101112.GE20169@cs181133002.pp.htv.fi> References: <1213565555.26255.522.camel@pmac.infradead.org> <1213604973-7073-1-git-send-email-jacmet@sunsite.dk> <1213617663.26255.708.camel@pmac.infradead.org> <20080616121727.GB10854@cs181133002.pp.htv.fi> <1213619214.26255.721.camel@pmac.infradead.org> <20080617084235.GA20169@cs181133002.pp.htv.fi> <1213696004.26255.960.camel@pmac.infradead.org> <20080617101112.GE20169@cs181133002.pp.htv.fi> Content-Type: text/plain Date: Tue, 17 Jun 2008 11:18:45 +0100 Message-Id: <1213697925.26255.969.camel@pmac.infradead.org> Mime-Version: 1.0 X-Mailer: Evolution 2.22.1 (2.22.1-2.fc9) Content-Transfer-Encoding: 7bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2061 Lines: 55 On Tue, 2008-06-17 at 13:11 +0300, Adrian Bunk wrote: > On Tue, Jun 17, 2008 at 10:46:44AM +0100, David Woodhouse wrote: > > On Tue, 2008-06-17 at 11:42 +0300, Adrian Bunk wrote: > > > > > > > Why _are_ there architectures which define ARCH_SUPPORTS_AOUT and have > > > > but don't support binfmt_aout, anyway? How does that make > > > > sense? > > > > > > My guess would be that binfmt_aout isn't actually used there. > > > > > > The affected architectures are: > > > - h8300 > > > - m32r > > > - parisc > > > - sh > > > - v850 > > > > > > v850 is broken beyond repair, and I hope my patch to remove the > > > architecture will make it into 2.6.27. > > > > > > For the other 4 architectures I have Cc'ed the architecture maintainers. > > > > There's another set of architectures which have but don't > > define ARCH_SUPPORTS_AOUT. Including PowerPC. > > > > I think we can probably get away with removing from every > > architecture other than Alpha, ARM, m68k and x86, and killing > > ARCH_SUPPORTS_AOUT completely. > > include/linux/a.out.h contains an #include and is exported > to userspace... Actually, it isn't -- but it _should_ be. But we can do it conditionally. See http://git.infradead.org/users/dwmw2/aout-2.6.git?a=commitdiff;h=5939c6a41 > > Or maybe, as dhowells suggests, re-defining ARCH_SUPPORTS_AOUT to be set > > only on Alpha, ARM, m68k and x86 (so BINFMT_AOUT can depend on it). > > The pattern for this stuff is to provide a HAVE_AOUT kconfig variable > that gets select'ed by these architectures. Or that; it doesn't really matter. I was about to remove ARCH_SUPPORTS_AOUT completely, but David suggested that it could be used to kill that hard-coded '(X86_32 || ALPHA || ARM || M68K)' in fs/Kconfig.binfmt. -- dwmw2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/