]> git.baikalelectronics.ru Git - uboot.git/commit
rpi: push fw_dtb_pointer in the .data section
authorMatthias Brugger <mbrugger@suse.com>
Tue, 19 Nov 2019 15:01:02 +0000 (16:01 +0100)
committerMatthias Brugger <mbrugger@suse.com>
Sun, 24 Nov 2019 09:46:27 +0000 (10:46 +0100)
commit5e85d5b19eb0be8a3665563d23031c48f34a2d3c
treec550de134d1f2d54af02532e216201374b6fe4a3
parent27bff347d10b9f8aa4c6c83aa4225c7094f6fb12
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

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