From: "Ryan C. Gordon" <icculus@icculus.org>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] binfmt_elf: Reorder objects in Makefile to favor platform default.
Date: Mon, 19 Oct 2009 10:25:43 -0400 (EDT) [thread overview]
Message-ID: <alpine.DEB.2.00.0910190415430.13303@andre.icculuslan> (raw)
Reordered object list so compat_binfmt_elf.o comes first. This will make it
call register_binfmt() first, inserting it at the end of the list.
Now the kernel will try the compatibility formats as a backup if the actual
system format rejects the binary. As almost all binaries loaded won't be
compatibility formats, this saves a few cycles for each process.
Signed-off-by: Ryan C. Gordon <icculus@icculus.org>
---
fs/Makefile | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/fs/Makefile b/fs/Makefile
index af6d047..173d153 100644
--- a/fs/Makefile
+++ b/fs/Makefile
@@ -40,8 +40,9 @@ obj-$(CONFIG_BINFMT_MISC) += binfmt_misc.o
# binfmt_script is always there
obj-y += binfmt_script.o
-obj-$(CONFIG_BINFMT_ELF) += binfmt_elf.o
+# List compat_* first, so they insert at end of the list, and are tried last.
obj-$(CONFIG_COMPAT_BINFMT_ELF) += compat_binfmt_elf.o
+obj-$(CONFIG_BINFMT_ELF) += binfmt_elf.o
obj-$(CONFIG_BINFMT_ELF_FDPIC) += binfmt_elf_fdpic.o
obj-$(CONFIG_BINFMT_SOM) += binfmt_som.o
obj-$(CONFIG_BINFMT_FLAT) += binfmt_flat.o
--
1.6.0.4
next reply other threads:[~2009-10-19 14:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-19 14:25 Ryan C. Gordon [this message]
2009-10-19 16:26 ` Andreas Schwab
2009-10-20 4:34 ` Ryan C. Gordon
2009-10-21 7:59 ` Ryan C. Gordon
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=alpine.DEB.2.00.0910190415430.13303@andre.icculuslan \
--to=icculus@icculus.org \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®