We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d22025 commit aeee273Copy full SHA for aeee273
test-app/Makefile
@@ -107,8 +107,11 @@ OBJCOPY_IMAGE_FLAGS:=
107
ifeq ($(USE_CLANG),1)
108
# Clang-built ARM ELFs can keep RAM sections as loadable segments, and raw
109
# objcopy output then expands the flash-to-RAM gap into a huge sparse image.
110
- # The app image only needs the flash-backed output sections.
111
- ifneq ($(TZEN),1)
+ # The app image only needs the flash-backed output sections. TrustZone
+ # non-secure apps also need the flash-backed .data load image.
112
+ ifeq ($(TZEN),1)
113
+ OBJCOPY_IMAGE_FLAGS+=-j .text -j .edidx -j .data
114
+ else
115
OBJCOPY_IMAGE_FLAGS+=$(CLANG_ARM_OBJCOPY_FLASH_FLAGS_APP)
116
endif
117
0 commit comments