mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-15 17:14:21 +00:00
build: forbid ENABLE_RME=1
when SEPARATE_CODE_AND_RODATA=0
This change mitigates against read-only data being used for malicious execution on platforms utilizing the RME/CCA. Change-Id: I0068535aeaa5d2515c7c54ee0dc19200c7a86ba5 Signed-off-by: Chris Kay <chris.kay@arm.com>
This commit is contained in:
parent
2ddb5415ca
commit
274a69e7ca
1 changed files with 6 additions and 0 deletions
6
Makefile
6
Makefile
|
@ -842,6 +842,12 @@ ifeq ($(DRTM_SUPPORT),1)
|
|||
$(info DRTM_SUPPORT is an experimental feature)
|
||||
endif
|
||||
|
||||
ifeq (${ENABLE_RME},1)
|
||||
ifneq (${SEPARATE_CODE_AND_RODATA},1)
|
||||
$(error `ENABLE_RME=1` requires `SEPARATE_CODE_AND_RODATA=1`)
|
||||
endif
|
||||
endif
|
||||
|
||||
################################################################################
|
||||
# Process platform overrideable behaviour
|
||||
################################################################################
|
||||
|
|
Loading…
Add table
Reference in a new issue