From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i68Tg-0006D0-4h for barebox@lists.infradead.org; Fri, 06 Sep 2019 07:16:17 +0000 Date: Fri, 6 Sep 2019 09:16:14 +0200 From: Sascha Hauer Message-ID: <20190906071614.ypr2q2o34zvjfiy4@pengutronix.de> References: <20190904112450.28168-1-cleger@kalray.eu> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190904112450.28168-1-cleger@kalray.eu> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH v4 1/2] elf: add 64 bits elf loading support To: Clement Leger Cc: Oleksij Rempel , Barebox List On Wed, Sep 04, 2019 at 01:24:49PM +0200, Clement Leger wrote: > From: Clement Leger > > 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 > Signed-off-by: Clement Leger > --- > 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