ARM: start: Fix image size calculation
In barebox_non_pbl_start() we do not run at the address we are linked
at, so we must read linker variables using ld_var(). Since ld_var()
current is not available on arm64 we create two zero sized arrays,
one at the begin of the image and one at the end. The difference
between both is the image size we are looking for.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent f716501 commit 857f69ba8c66e3b4834bcaafd373a83043629326
@Sascha Hauer Sascha Hauer authored on 6 Feb 2017
Showing 8 changed files
View
arch/arm/boards/avnet-zedboard/flash_header.c
View
arch/arm/boards/friendlyarm-tiny210/lowlevel.c
View
arch/arm/cpu/common.c
View
arch/arm/include/asm/barebox-arm.h
View
arch/arm/lib32/barebox.lds.S
View
arch/arm/lib32/runtime-offset.S
View
drivers/mtd/nand/nand_s3c24xx.c
View
include/asm-generic/sections.h