arm-trusted-firmware/include/arch
Andre Przywara e57ca899ef fix(qemu): fix 32-bit builds with stack protector
When using the ENABLE_STACK_PROTECTOR=strong build option, the QEMU code
will try to use the RNDR CPU instructions to initialise the stack
canary. Since the instructions are defined for AArch64 only, this will
fail to build for AArch32.

And even though we now always return "false" when asked about the
availability of the RNDR instruction, the compiler will still leave the
reference to read_rdnr() in, if optimisations are turned off (-O0).

Avoid this by providing a dummy read_rndr() implementation, that makes
the linker happy in any case.

This fixes the QEMU build for AArch32 with ENABLE_STACK_PROTECTOR=strong

Change-Id: Ibf450ba4a46167fdf3a14a527d338350ced8b5ba
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
2023-05-23 14:14:32 +01:00
..
aarch32 fix(qemu): fix 32-bit builds with stack protector 2023-05-23 14:14:32 +01:00
aarch64 Merge changes I1bfa797e,I0ec7a70e into integration 2023-05-09 22:05:52 +02:00