From f0972f79665e4e068319998acc4b6cb288fafd36 Mon Sep 17 00:00:00 2001 From: Shinichiro Hamaji Date: Thu, 5 Nov 2015 12:51:08 +0900 Subject: [PATCH] Allow missing SONAME in .toc files At least one shared object in internal repo doesn't have SONAME entry in its dynamic segment because it is created by objcopy instead of a linker. Change-Id: If7106da022ff1e4e925191402f9072795dc3ddcb --- core/config.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/config.mk b/core/config.mk index 9c275f779..49810ee68 100644 --- a/core/config.mk +++ b/core/config.mk @@ -283,7 +283,7 @@ TARGET_CPU_ABI2 := $(strip $(TARGET_CPU_ABI2)) # Commands to generate .toc file common to ELF .so files. define _gen_toc_command_for_elf -$(hide) $($(PRIVATE_2ND_ARCH_VAR_PREFIX)$(PRIVATE_PREFIX)READELF) -d $(1) | grep SONAME > $(2) +$(hide) ($($(PRIVATE_2ND_ARCH_VAR_PREFIX)$(PRIVATE_PREFIX)READELF) -d $(1) | grep SONAME || echo "No SONAME for $1") > $(2) $(hide) $($(PRIVATE_2ND_ARCH_VAR_PREFIX)$(PRIVATE_PREFIX)NM) -gD -f p $(1) | cut -f1-2 -d" " >> $(2) endef