mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Antony Pavlov <antonynpavlov@gmail.com>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] elf.h: Use EI_NIDENT instead of numeric value
Date: Mon, 16 Oct 2017 10:26:49 +0200	[thread overview]
Message-ID: <20171016082649.g5fjmdqrxypxkxa6@pengutronix.de> (raw)
In-Reply-To: <20171009134053.28215-1-antonynpavlov@gmail.com>

On Mon, Oct 09, 2017 at 04:40:53PM +0300, Antony Pavlov wrote:
> This is an adoption of the linux kernel commit
> 
> | commit eb6900fbfa43cb50391b80b38608e25280705693
> | Author: Cyrill Gorcunov <gorcunov@gmail.com>
> | Date:   Tue Apr 29 01:01:17 2008 -0700
> |
> |     ELF: Use EI_NIDENT instead of numeric value
> |
> |     Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
> |     Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> |     Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
> 
> Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
> ---
>  include/elf.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks

Sascha

> 
> diff --git a/include/elf.h b/include/elf.h
> index a749bec34e..ebcec7db0d 100644
> --- a/include/elf.h
> +++ b/include/elf.h
> @@ -207,7 +207,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;
> -- 
> 2.14.1
> 
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      reply	other threads:[~2017-10-16  8:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-09 13:40 Antony Pavlov
2017-10-16  8:26 ` Sascha Hauer [this message]

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=20171016082649.g5fjmdqrxypxkxa6@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=antonynpavlov@gmail.com \
    --cc=barebox@lists.infradead.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