From: Daisuke HATAYAMA <d.hatayama@jp.fujitsu.com>
To: akpm@linux-foundation.org
Cc: linux-kernel@vger.kernel.org, randy.dunlap@oracle.com
Subject: [PATCH, mmotm] compat_binfmt_elf.c: Use 32-bit section header, not 64-bit one
Date: Tue, 16 Feb 2010 15:44:37 +0900 (JST) [thread overview]
Message-ID: <20100216.154437.193709505.d.hatayama@jp.fujitsu.com> (raw)
Hi Andrew.
From: akpm@linux-foundation.org
Subject: + elf-coredump-replace-elf_core_extra_-macros-by-functions-fix.patch added to -mm tree
Date: Mon, 01 Feb 2010 12:04:59 -0800
>
> The patch titled
> elf-coredump-replace-elf_core_extra_-macros-by-functions-fix
> has been added to the -mm tree. Its filename is
> elf-coredump-replace-elf_core_extra_-macros-by-functions-fix.patch
>
I found that the previous fix patch of mine was insufficient for
fixing the problem relevant to EL32. It was necessary that one should
use the 32-bit datatype for section headers instead of the 64-bit one.
Here is a patch complementing it.
I made a runtime test for this fix patch, confirming that the
functionality works well.
Thanks,
HATAYAMA Daisuke
Signed-off-by: Daisuke HATAYAMA <d.hatayama@jp.fujitsu.com>
---
fs/compat_binfmt_elf.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/fs/compat_binfmt_elf.c b/fs/compat_binfmt_elf.c
index 0adced2..112e45a 100644
--- a/fs/compat_binfmt_elf.c
+++ b/fs/compat_binfmt_elf.c
@@ -28,10 +28,12 @@
#undef elfhdr
#undef elf_phdr
+#undef elf_shdr
#undef elf_note
#undef elf_addr_t
#define elfhdr elf32_hdr
#define elf_phdr elf32_phdr
+#define elf_shdr elf32_shdr
#define elf_note elf32_note
#define elf_addr_t Elf32_Addr
--
1.6.5.1
reply other threads:[~2010-02-16 6:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20100216.154437.193709505.d.hatayama@jp.fujitsu.com \
--to=d.hatayama@jp.fujitsu.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=randy.dunlap@oracle.com \
/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®