From: Adrian Bunk <bunk@kernel.org>
To: David Howells <dhowells@redhat.com>
Cc: torvalds@osdl.org, akpm@linux-foundation.org,
linux-kernel@vger.kernel.org, linux-am33-list@redhat.com,
Andi Kleen <ak@suse.de>
Subject: Re: [PATCH 1/6] Suppress A.OUT library support if !CONFIG_BINFMT_AOUT [try #5]
Date: Sun, 11 Nov 2007 16:19:51 +0100 [thread overview]
Message-ID: <20071111151951.GP21669@stusta.de> (raw)
In-Reply-To: <1701.1194793436@redhat.com>
On Sun, Nov 11, 2007 at 03:03:56PM +0000, David Howells wrote:
> Adrian Bunk <bunk@kernel.org> wrote:
>
> > It's BTW not an improvement that you do not only rename them but change
> > such big functions to static inline functions in header files.
>
> I'm not sure what you meant by that.
>
> Renaming them indicates more clearly that their only purpose is for A.OUT
> support.
>
> Making them inline is an improvement because it compiles the code into the
> binfmt_aout module rather than the core kernel, and gives the compiler
> optimiser a chance to reduce the size of the overall code.
>
> And the functions aren't actually all that big or complex. They're about
> shovelling data and don't do anything clever.
>...
My thoughts go more into the direction that we have hundreds of similar
cases where e.g. a VFS function might currently only by used by OCFS2
and therefore be dead code for most users, and the only maintainable
solution will be to solve these at the compiler and/or linker level.
> > Something like this.
>
> Was that an agreement with my suggested break up, or was there something more
> meant to be there?
That was an agreement.
> > But changes to binfmt_elf.c after the merge window that might introduce
> > regressions (e.g. you (ab)use CONFIG_BINFMT_AOUT where you might have to
> > introduce an CONFIG_ARCH_SUPPORTS_AOUT instead) decrease your chances of
> > being merged that late.
>
> That was more or less what I wanted to do originally, but I was told to use
> CONFIG_BINFMT_AOUT instead - which actually proves to have two variants:-(
>
> Perhaps I could start with the patch that you mentioned to remove AOUT
> interpreter support from binfmt_elf. Can you point me at it or send it to me?
> That's still not sufficient, but it removes part of the changes I have to
> make.
Andi scheduled it for removal, and I don't know whether he already has a
patch.
> > But you might be able to do something like a
> > cp include/asm-xtensa/a.out.h include/asm-mn10300/
> > instead.
>
> No. That would be wrong. MN10300 does not define an exec struct, and nor
> should it provide an asm/a.out.h header. It does not do AOUT format.
Read the comment at the top of the xtensa header. ;-)
For 2.6.25 a better solution is appreciated, but for 2.6.24 such a small
dirty workaround that can't cause breakages on other architectures would
be better.
> David
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
next prev parent reply other threads:[~2007-11-11 15:20 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-09 15:34 [PATCH 0/6] MN10300: Add the MN10300 architecture to Linux kernel [try #5] David Howells
2007-11-09 15:34 ` [PATCH 1/6] Suppress A.OUT library support if !CONFIG_BINFMT_AOUT " David Howells
2007-11-11 2:14 ` Andrew Morton
2007-11-12 15:34 ` David Howells
2007-11-12 19:53 ` Andrew Morton
2007-11-12 22:50 ` SL Baur
2007-11-12 23:14 ` David Howells
2007-11-13 3:09 ` SL Baur
2007-11-13 10:57 ` David Howells
2007-11-13 11:18 ` Andrew Morton
2007-11-13 12:46 ` Peter Zijlstra
2007-11-13 20:40 ` Matt Mackall
2007-11-13 20:46 ` Peter Zijlstra
2007-11-11 11:25 ` Adrian Bunk
2007-11-11 13:59 ` David Howells
2007-11-11 14:22 ` Adrian Bunk
2007-11-11 15:03 ` David Howells
2007-11-11 15:19 ` Adrian Bunk [this message]
2007-11-11 15:46 ` Andi Kleen
2007-11-11 16:05 ` Adrian Bunk
2007-11-11 16:31 ` David Howells
2007-12-03 15:15 ` David Howells
2007-12-03 16:00 ` Ralf Baechle
2007-12-03 16:17 ` Adrian Bunk
2007-11-09 15:34 ` [PATCH 2/6] MTD: Add support for the SST 39VF1601 flash chip " David Howells
2007-11-09 22:34 ` David Woodhouse
2007-11-09 15:34 ` [PATCH 3/6] USB: net2280 can't have a function called show_registers() " David Howells
2007-11-09 15:34 ` [PATCH 4/6] MN10300: Allocate serial port UART IDs for on-chip serial ports " David Howells
2007-11-09 15:35 ` [PATCH 6/6] MN10300: Add MTD flash support for the ASB2303 board " David Howells
2007-11-10 4:05 ` David Woodhouse
2007-11-11 14:01 ` David Howells
[not found] ` <20071109153458.20803.10594.stgit@warthog.procyon.org.uk>
2007-11-10 3:53 ` [PATCH 5/6] MN10300: Add the MN10300/AM33 architecture to the kernel " Andrew Morton
2007-11-10 12:18 ` David Howells
2007-11-10 19:43 ` Andrew Morton
2007-11-10 20:02 ` Alan Cox
2007-11-11 14:32 ` David Howells
2007-11-12 7:44 ` Adrian Bunk
2007-11-10 20:09 ` Alan Cox
2007-11-11 14:48 ` David Howells
2007-11-11 15:18 ` Alan Cox
2007-11-11 16:36 ` David Howells
2007-11-11 16:42 ` Alan Cox
2007-11-12 12:19 ` David Howells
2007-11-11 15:07 ` David Howells
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071111151951.GP21669@stusta.de \
--to=bunk@kernel.org \
--cc=ak@suse.de \
--cc=akpm@linux-foundation.org \
--cc=dhowells@redhat.com \
--cc=linux-am33-list@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.