OSDN Git Service

for xtensa this is still required to avoid build breakage
authorWaldemar Brodkorb <wbx@openadk.org>
Thu, 2 Apr 2015 20:20:39 +0000 (15:20 -0500)
committerWaldemar Brodkorb <wbx@openadk.org>
Thu, 2 Apr 2015 20:20:39 +0000 (15:20 -0500)
ldso/ldso/Makefile.in

index e0d0a09..cd6e492 100644 (file)
@@ -27,6 +27,11 @@ CFLAGS-$(DODEBUG)-ldso/ldso := -O2 -g
 
 CFLAGS-ldso.c := -DLDSO_ELFINTERP=\"$(TARGET_ARCH)/elfinterp.c\"
 
+# avoid ld.so linking error since gcc 4.9.x: undefined reference to abort
+ifeq ($(TARGET_ARCH),xtensa)
+CFLAGS-ldso.c += -fno-delete-null-pointer-checks
+endif
+
 LDFLAGS-$(UCLIBC_FORMAT_DSBT_ELF)-$(UCLIBC_LDSO_NAME).so := -Wl,--dsbt-index=1
 ifneq ($(SUPPORT_LD_DEBUG),y)
 LDFLAGS-$(UCLIBC_LDSO_NAME).so := $(LDFLAGS)