common: elf: fix warning on 32 bits architectures
When pointers are 32 bits wide and we cast a potentially 64 bits
value in it, the compiler will yield an error. Cast that value first
into a phys_addr_t to match the architecture pointer size and then
in a void *.

Signed-off-by: Clement Leger <cleger@kalray.eu>
Tested-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 5882559 commit db400c59c471d8e52dda292749a10e5c4bf688d5
@Clement Leger Clement Leger authored on 12 Jun 2020
Sascha Hauer committed on 15 Jun 2020
Showing 1 changed file
View
common/elf.c