Messages in this thread |  | | Subject | Re: [PATCH v2] export linux/a.out.h | From | David Woodhouse <> | Date | Mon, 16 Jun 2008 16:47:06 +0100 |
| |
On Mon, 2008-06-16 at 14:48 +0100, David Howells wrote: > David Woodhouse <dwmw2@infradead.org> wrote: > > > Why _are_ there architectures which define ARCH_SUPPORTS_AOUT and have > > <asm/a.out.h> but don't support binfmt_aout, anyway? How does that make > > sense? > > Maybe because some arches supported ELF with AOUT interpreters but not full > AOUT binaries?
Is that sane? I thought a.out interpreters for ELF were a transitional thing to cope with moving from a.out to ELF. Would anyone really do that unless they had real a.out support in the first place?
I'm more inclined to believe that they just blindly copied <asm/user.h> from i386 when the arch was created, and then later got ARCH_SUPPORTS_AOUT defined for that arch because they had a <asm/a.out.h>.
I suspect we could actually just remove <asm/a.out.h> for all architectures except Alpha, x86, ARM and m68k. We'd probably have to remove inclusions of <linux/a.out.h> from a few places in arch code, but all of them will turn out to be gratuitous anyway.
-- dwmw2
|  |