resolved conflicts for merge of 40ab92d0
to master
Change-Id: I400c1655c57237687a21a017b9c2065d166e3097
This commit is contained in:
@@ -87,7 +87,9 @@ TARGET_GLOBAL_CFLAGS += \
|
|||||||
-ffunction-sections \
|
-ffunction-sections \
|
||||||
-fdata-sections \
|
-fdata-sections \
|
||||||
-funwind-tables \
|
-funwind-tables \
|
||||||
|
-Wa,--noexecstack \
|
||||||
-Werror=format-security \
|
-Werror=format-security \
|
||||||
|
-D_FORTIFY_SOURCE=1 \
|
||||||
$(arch_variant_cflags)
|
$(arch_variant_cflags)
|
||||||
|
|
||||||
android_config_h := $(call select-android-config-h,linux-mips)
|
android_config_h := $(call select-android-config-h,linux-mips)
|
||||||
@@ -117,10 +119,13 @@ TARGET_GLOBAL_CFLAGS += -DPAGE_SHIFT=$(ARCH_MIPS_PAGE_SHIFT)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
TARGET_GLOBAL_LDFLAGS += \
|
TARGET_GLOBAL_LDFLAGS += \
|
||||||
|
-Wl,-z,noexecstack \
|
||||||
|
-Wl,-z,relro \
|
||||||
|
-Wl,-z,now \
|
||||||
|
-Wl,--warn-shared-textrel \
|
||||||
$(arch_variant_ldflags)
|
$(arch_variant_ldflags)
|
||||||
|
|
||||||
TARGET_GLOBAL_CPPFLAGS += -fvisibility-inlines-hidden \
|
TARGET_GLOBAL_CPPFLAGS += -fvisibility-inlines-hidden
|
||||||
-fno-use-cxa-atexit
|
|
||||||
|
|
||||||
# More flags/options can be added here
|
# More flags/options can be added here
|
||||||
TARGET_RELEASE_CFLAGS := \
|
TARGET_RELEASE_CFLAGS := \
|
||||||
@@ -220,7 +225,7 @@ define transform-o-to-shared-lib-inner
|
|||||||
$(hide) $(PRIVATE_CXX) \
|
$(hide) $(PRIVATE_CXX) \
|
||||||
-nostdlib -Wl,-soname,$(notdir $@) \
|
-nostdlib -Wl,-soname,$(notdir $@) \
|
||||||
-Wl,--gc-sections \
|
-Wl,--gc-sections \
|
||||||
-shared -Bsymbolic \
|
-Wl,-shared,-Bsymbolic \
|
||||||
$(PRIVATE_TARGET_GLOBAL_LD_DIRS) \
|
$(PRIVATE_TARGET_GLOBAL_LD_DIRS) \
|
||||||
$(if $(filter true,$(PRIVATE_NO_CRT)),,$(PRIVATE_TARGET_CRTBEGIN_SO_O)) \
|
$(if $(filter true,$(PRIVATE_NO_CRT)),,$(PRIVATE_TARGET_CRTBEGIN_SO_O)) \
|
||||||
$(PRIVATE_ALL_OBJECTS) \
|
$(PRIVATE_ALL_OBJECTS) \
|
||||||
@@ -250,6 +255,9 @@ $(hide) $(PRIVATE_CXX) -nostdlib -Bdynamic -fPIE -pie \
|
|||||||
$(call normalize-target-libraries,$(PRIVATE_ALL_SHARED_LIBRARIES)) \
|
$(call normalize-target-libraries,$(PRIVATE_ALL_SHARED_LIBRARIES)) \
|
||||||
$(if $(filter true,$(PRIVATE_NO_CRT)),,$(PRIVATE_TARGET_CRTBEGIN_DYNAMIC_O)) \
|
$(if $(filter true,$(PRIVATE_NO_CRT)),,$(PRIVATE_TARGET_CRTBEGIN_DYNAMIC_O)) \
|
||||||
$(PRIVATE_ALL_OBJECTS) \
|
$(PRIVATE_ALL_OBJECTS) \
|
||||||
|
-Wl,--whole-archive \
|
||||||
|
$(call normalize-target-libraries,$(PRIVATE_ALL_WHOLE_STATIC_LIBRARIES)) \
|
||||||
|
-Wl,--no-whole-archive \
|
||||||
$(if $(PRIVATE_GROUP_STATIC_LIBRARIES),-Wl$(comma)--start-group) \
|
$(if $(PRIVATE_GROUP_STATIC_LIBRARIES),-Wl$(comma)--start-group) \
|
||||||
$(call normalize-target-libraries,$(PRIVATE_ALL_STATIC_LIBRARIES)) \
|
$(call normalize-target-libraries,$(PRIVATE_ALL_STATIC_LIBRARIES)) \
|
||||||
$(if $(PRIVATE_GROUP_STATIC_LIBRARIES),-Wl$(comma)--end-group) \
|
$(if $(PRIVATE_GROUP_STATIC_LIBRARIES),-Wl$(comma)--end-group) \
|
||||||
@@ -269,6 +277,9 @@ $(hide) $(PRIVATE_CXX) -nostdlib -Bstatic \
|
|||||||
$(PRIVATE_TARGET_GLOBAL_LDFLAGS) \
|
$(PRIVATE_TARGET_GLOBAL_LDFLAGS) \
|
||||||
$(PRIVATE_LDFLAGS) \
|
$(PRIVATE_LDFLAGS) \
|
||||||
$(PRIVATE_ALL_OBJECTS) \
|
$(PRIVATE_ALL_OBJECTS) \
|
||||||
|
-Wl,--whole-archive \
|
||||||
|
$(call normalize-target-libraries,$(PRIVATE_ALL_WHOLE_STATIC_LIBRARIES)) \
|
||||||
|
-Wl,--no-whole-archive \
|
||||||
$(call normalize-target-libraries,$(filter-out %libc_nomalloc.a,$(filter-out %libc.a,$(PRIVATE_ALL_STATIC_LIBRARIES)))) \
|
$(call normalize-target-libraries,$(filter-out %libc_nomalloc.a,$(filter-out %libc.a,$(PRIVATE_ALL_STATIC_LIBRARIES)))) \
|
||||||
-Wl,--start-group \
|
-Wl,--start-group \
|
||||||
$(call normalize-target-libraries,$(filter %libc.a,$(PRIVATE_ALL_STATIC_LIBRARIES))) \
|
$(call normalize-target-libraries,$(filter %libc.a,$(PRIVATE_ALL_STATIC_LIBRARIES))) \
|
||||||
|
Reference in New Issue
Block a user