diff options
author | Carmelo Amoroso <carmelo.amoroso@st.com> | 2007-11-07 15:14:50 +0000 |
---|---|---|
committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2007-11-07 15:14:50 +0000 |
commit | 6630516b0a000e0ac9769eceda72881f788b23b0 (patch) | |
tree | be45d000f7fcc15236d67c0c0703ee10645518ed /Rules.mak | |
parent | 15e6cdf87ac378107dbbe096f1b09917733b0240 (diff) |
Added support for GNU hash style into dynamic linker
Diffstat (limited to 'Rules.mak')
-rw-r--r-- | Rules.mak | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 |