File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,8 @@ OBJCOPYFLAGS += -j .text -j .secure_text -j .secure_data -j .rodata -j .data \
139139 -j .u_boot_list -j .rela.dyn -j .got -j .got.plt
140140else
141141OBJCOPYFLAGS += -j .text -j .secure_text -j .secure_data -j .rodata -j .hash \
142- -j .data -j .got -j .got.plt -j .u_boot_list -j .rel.dyn
142+ -j .data -j .got -j .got.plt -j .u_boot_list -j .rel.dyn \
143+ -j .ARM.exidx -j .ARM.extab
143144endif
144145
145146# if a dtb section exists we always have to include it
Original file line number Diff line number Diff line change 1111# of our decision.
1212PF_NO_UNALIGNED := $(call cc-option, -mno-unaligned-access,)
1313PLATFORM_CPPFLAGS += $(PF_NO_UNALIGNED )
14+
15+ ifeq ($(CONFIG_SPL_BUILD )$(CONFIG_TPL_BUILD ) ,)
16+ PLATFORM_CPPFLAGS += -mabi=aapcs-linux -funwind-tables
17+ endif
Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ ifdef FTRACE
88subdir-ccflags-y += -finstrument-functions -DFTRACE
99endif
1010
11+ # Here is an compile issue: "undefined reference to `__aeabi_unwind_cpp_pr0'..."
12+ # when -funwind-tables is enabled, so make it compile depends on -funwind-tables.
13+ ifeq (,$(findstring -funwind-tables,$(PLATFORM_CPPFLAGS ) ) )
1114subdir-y += standalone
1215subdir-$(CONFIG_API) += api
1316endif
17+ endif
You can’t perform that action at this time.
0 commit comments