mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Clement Leger <cleger@kalray.eu>
Cc: Oleksij Rempel <o.rempel@pengutronix.de>,
	Barebox List <barebox@lists.infradead.org>
Subject: Re: [PATCH v4 1/2] elf: add 64 bits elf loading support
Date: Fri, 6 Sep 2019 09:16:14 +0200	[thread overview]
Message-ID: <20190906071614.ypr2q2o34zvjfiy4@pengutronix.de> (raw)
In-Reply-To: <20190904112450.28168-1-cleger@kalray.eu>

On Wed, Sep 04, 2019 at 01:24:49PM +0200, Clement Leger wrote:
> From: Clement Leger <clement.leger@kalray.eu>
> 
> This patch add elf64 loading support to the elf loader. Since
> elf32 and elf64 uses completely different types, to avoid copying all
> the code and simply replace elf32 with elf64, use a macro which will
> return the appropriate field for each type of header. This macro
> generates getter for elf structures according to the class of the loaded
> elf.
> All direct elf struct dereference are then replaced by call to generated
> functions. This allows to keep a common loader code even if types are
> different.
> 
> Tested-by: Oleksij Rempel <o.rempel@pengutronix.de>
> Signed-off-by: Clement Leger <cleger@kalray.eu>
> ---
> Changes in V4:
>  - Fix mips elf entry cast to pointer
>  - Add Tested-by Oleksij Rempel

Applied, thanks

Sascha

-- 
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

      parent reply	other threads:[~2019-09-06  7:16 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-18 19:16 [PATCH] elf: add 64 bits elf support Clément Leger
2019-03-20  8:05 ` Sascha Hauer
2019-03-20  8:18   ` Clément Leger
2019-03-20 16:28     ` Clément Leger
2019-03-27  7:48       ` Sascha Hauer
2019-03-27  7:59         ` Clément Leger
2019-09-01 14:09         ` [PATCH v3] elf: add 64 bits elf loading support Clement Leger
2019-09-02  6:07           ` Oleksij Rempel
2019-09-02  7:09             ` Clément Leger
2019-09-04 11:24             ` [PATCH v4 1/2] " Clement Leger
2019-09-04 11:24               ` [PATCH v4 2/2] mips: bootm: Cast elf entry into unsigned long Clement Leger
2019-09-06  7:16               ` 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=20190906071614.ypr2q2o34zvjfiy4@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=cleger@kalray.eu \
    --cc=o.rempel@pengutronix.de \
    /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