Skip to content

Commit aeee273

Browse files
committed
CLANG: fix sparse image for test-app in trustzone
1 parent 5d22025 commit aeee273

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test-app/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,11 @@ OBJCOPY_IMAGE_FLAGS:=
107107
ifeq ($(USE_CLANG),1)
108108
# Clang-built ARM ELFs can keep RAM sections as loadable segments, and raw
109109
# 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)
110+
# The app image only needs the flash-backed output sections. TrustZone
111+
# 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
112115
OBJCOPY_IMAGE_FLAGS+=$(CLANG_ARM_OBJCOPY_FLASH_FLAGS_APP)
113116
endif
114117
endif

0 commit comments

Comments
 (0)