rpi: push fw_dtb_pointer in the .data section 59/219659/1
authorMatthias Brugger <mbrugger@suse.com>
Tue, 19 Nov 2019 15:01:02 +0000 (16:01 +0100)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 9 Dec 2019 05:23:52 +0000 (14:23 +0900)
commit00f36d15d88dc0f295149b2cc79de393e683e929
tree8d631d521d06c4aa941cea8f0e7849aa0e67e8cc
parent01da938c4d4740e9295126d13b8b850512e44d52
rpi: push fw_dtb_pointer in the .data section

The fw_dtb_pointer was defined in the assembly code, which makes him
live in section .text_rest
Put that's not necessary, we can push the variable in the .data section.

This will prevent relocation errors like:
board/raspberrypi/rpi/rpi.c:317:(.text.board_get_usable_ram_top+0x8):
relocation truncated to fit: R_AARCH64_LDST64_ABS_LO12_NC against symbol
`fw_dtb_pointer' defined in .text section in board/raspberrypi/rpi/built-in.o

Change-Id: I16e0ca281c9dc9871d5fb9af23ddfc29f57e8f63
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
board/raspberrypi/rpi/lowlevel_init.S
board/raspberrypi/rpi/rpi.c