Skip to contentSkip to conversation

compat_binfmt_elf.c: Use 32-bit section header, not 64-bit one

PATCH New Daisuke HATAYAMA 1 participant 1 message Feb 16, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 compat_binfmt_elf.c: Use 32-bit section header, not 64-bit one

Hi Andrew.

From: [email protected]
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

Quoted 6 lines

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

---
 fs/compat_binfmt_elf.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
fs/compat_binfmt_elf.c +2 -0
index 0adced2..112e45a 100644
@@ -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
 
Signature · 1 line
1.6.5.1