From 6630516b0a000e0ac9769eceda72881f788b23b0 Mon Sep 17 00:00:00 2001 From: Carmelo Amoroso Date: Wed, 7 Nov 2007 15:14:50 +0000 Subject: Added support for GNU hash style into dynamic linker --- Rules.mak | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Rules.mak') diff --git a/Rules.mak b/Rules.mak index 0197fa338..1e7bdb85a 100644 --- a/Rules.mak +++ b/Rules.mak @@ -408,6 +408,16 @@ ifeq ($(UCLIBC_BUILD_NOW),y) LDFLAGS_NOSTRIP+=-Wl,-z,now endif +ifeq ($(LDSO_GNU_HASH_SUPPORT),y) +# Be sure that binutils support it +LDFLAGS_GNUHASH :=$(call check_ld,--hash-style=gnu) +ifeq ($(LDFLAGS_GNUHASH),) +$(error Your binutils don't support --hash-style option, while you want to use it) +else +LDFLAGS_NOSTRIP += -Wl,$(LDFLAGS_GNUHASH) +endif +endif + LDFLAGS:=$(LDFLAGS_NOSTRIP) -Wl,-z,defs ifeq ($(DODEBUG),y) #CFLAGS += -g3 -- cgit v1.2.3