Skip to content

Commit fe5c5d5

Browse files
Andrew Boienashif
authored andcommitted
arc: add -fno-delete-null-pointer-checks
This option has side effects. It also tells the compiler not to generate these checks in the first place. The checks call abort() which doesn't exist in our environment. This patch gets rid of linker errors due to missing abort() in the 0.9 SDK. Change-Id: Ibc5aeb5458d0bded714c9c074cdf08112733428b Signed-off-by: Andrew Boie <[email protected]>
1 parent 0c566ad commit fe5c5d5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

arch/arc/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
cflags-y += $(call cc-option,-ffunction-sections,) $(call cc-option,-fdata-sections,)
2+
3+
# Without this (poorly named) option, compiler may generate undefined
4+
# references to abort().
5+
# See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63691
6+
cflags-y += $(call cc-option,-fno-delete-null-pointer-checks)
7+
28
cflags-$(CONFIG_ARC_STACK_CHECKING) = $(call cc-option,-fomit-frame-pointer)
39
cflags-$(CONFIG_LTO) = $(call cc-option,-flto,)
410

0 commit comments

Comments
 (0)