From f13df7c79dc6e3f86bf8a33c113e681d1bdeab37 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 29 Aug 2001 18:45:03 +0000 Subject: Update. 2001-08-28 H.J. Lu * Makeconfig (combreloc-LDFLAGS): New variable. Add it to LDFALGS.so, LDFLAGS-rtld, and +link. * config.make.in (have-z-combreloc): New variable. * configure.in: Substitute libc_cv_z_combreloc. * iconv/strtab.c (searchstring): Use correct length for comparison. --- Makeconfig | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makeconfig') diff --git a/Makeconfig b/Makeconfig index b7c3f6b..74192b4 100644 --- a/Makeconfig +++ b/Makeconfig @@ -380,10 +380,17 @@ ifndef static-start-installed-name static-start-installed-name = $(start-installed-name) endif +ifeq (yesyesyes,$(build-shared)$(elf)$(have-z-combreloc)) +combreloc-LDFLAGS = -Wl,-z,combreloc +LDFLAGS.so += $(combreloc-LDFLAGS) +LDFLAGS-rtld += $(combreloc-LDFLAGS) +endif + # Command for linking programs with the C library. ifndef +link +link = $(CC) -nostdlib -nostartfiles -o $@ \ $(sysdep-LDFLAGS) $(config-LDFLAGS) $(LDFLAGS) $(LDFLAGS-$(@F)) \ + $(combreloc-LDFLAGS) \ $(addprefix $(csu-objpfx),$(start-installed-name)) \ $(+preinit) $(+prector) \ $(filter-out $(addprefix $(csu-objpfx),start.o \ -- cgit v1.1