From: gorcunov@gmail.com
To: akpm@linux-foundation.org, linux-kernel@vger.kernel.org
Cc: gorcunov@gmail.com
Subject: [patch 1/2] ELF: Use EI_NIDENT instead of numeric value
Date: Sun, 10 Feb 2008 15:43:24 +0300 [thread overview]
Message-ID: <20080210124821.777700517@gmail.com> (raw)
In-Reply-To: 20080210124323.068409407@gmail.com
[-- Attachment #1: elf-EI_NIDENT --]
[-- Type: text/plain, Size: 670 bytes --]
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---
elf.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6.git/include/linux/elf.h
===================================================================
--- linux-2.6.git.orig/include/linux/elf.h 2008-02-08 19:09:52.000000000 +0300
+++ linux-2.6.git/include/linux/elf.h 2008-02-10 10:49:54.000000000 +0300
@@ -208,7 +208,7 @@ typedef struct elf32_hdr{
} Elf32_Ehdr;
typedef struct elf64_hdr {
- unsigned char e_ident[16]; /* ELF "magic number" */
+ unsigned char e_ident[EI_NIDENT]; /* ELF "magic number" */
Elf64_Half e_type;
Elf64_Half e_machine;
Elf64_Word e_version;
--
next prev parent reply other threads:[~2008-02-10 12:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-10 12:43 [patch 0/2] ELF cleanup gorcunov
2008-02-10 12:43 ` gorcunov [this message]
2008-02-10 12:43 ` [patch 2/2] BINFMT: fill_elf_header cleanup - use straigth memset first gorcunov
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=20080210124821.777700517@gmail.com \
--to=gorcunov@gmail.com \
--cc=akpm@linux-foundation.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