Page MenuHomePhabricator

iMX8MQ does not compile due to BL31 image exceeding its limit
Open, Needs TriagePublic

Description

I'm trying to compile TF-A for iMX8MQ.

However compilation ends with this error:

aarch64-linux-gnu-ld.bfd: <path>/trusted-firmware-a/build/imx8mq/release/bl31/bl31.elf section `.xlat_table' will not fit in region `RAM'
aarch64-linux-gnu-ld.bfd: BL31 image has exceeded its limit.
aarch64-linux-gnu-ld.bfd: region `RAM' overflowed by 16384 bytes

I'm using the following command for building:

make bl31 PLAT=imx8mq CROSS_COMPILE=aarch64-none-elf- DEBUG=0 LOG_LEVEL=0 CFLAGS=-Os SPD=none

I have tested on TF-A lts-v2.10.2.
I also tried a random earlier version (1309c6c80519) and it compiled without issues.