From 9a3eef0e157e3d458d704511a1dabfaea1db31d4 Mon Sep 17 00:00:00 2001 From: midipix Date: Jan 10 2019 03:43:16 +0000 Subject: project: linking flags: (temporarily) associate --hash-style with ELF. --- diff --git a/project/extras.mk b/project/extras.mk index 112b8b0..73d6b39 100644 --- a/project/extras.mk +++ b/project/extras.mk @@ -12,11 +12,14 @@ LDFLAGS_COMMON += -Wl,--no-undefined LDFLAGS_COMMON += -Wl,--exclude-libs=ALL LDFLAGS_COMMON += -Wl,-e -Wl,_dlstart -LDFLAGS_COMMON += -Wl,--hash-style -Wl,both LDFLAGS_COMMON += -Wl,--sort-section -Wl,alignment SHARED_LIB_DEPS += -lgcc -lgcc_eh +ifeq ($(CC_BINFMT),ELF) +LDFLAGS_COMMON += -Wl,--hash-style -Wl,both +endif + # common cflags CFLAGS_COMMON += -fdata-sections CFLAGS_COMMON += -ffunction-sections