Re: [PATCH v3] elf: add 64 bits elf loading support

2019-09-02 Thread Clément Leger
Hi Oleksij, Thanks for testing, since I only tested on arm, it explain this problem :) I will try to search for all elf->entry usage and fix that according to architectures. Thanks, Clément - On 2 Sep, 2019, at 08:07, Oleksij Rempel o.rem...@pengutronix.de wrote: > Hi Clement, > > thank y

Re: [PATCH v3] elf: add 64 bits elf loading support

2019-09-01 Thread Oleksij Rempel
Hi Clement, thank you for your patch. I tested it on MIPS32 system. I get this compile warning: arch/mips/lib/bootm.c: In function 'do_bootm_elf': arch/mips/lib/bootm.c:75:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] entry = (void *)elf->entry;

[PATCH v3] elf: add 64 bits elf loading support

2019-09-01 Thread Clement Leger
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 g