From 4df8c11d26a29bc3a6116a9125cdfdca3cd517bb Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 6 Mar 2004 09:51:56 +0000 Subject: Update. * configure.in: Recognize --enable-bind-now. * elf/dynamic-link.h (elf_get_dynamic_info): Allow bind-now flags in ld.so. * Makerules (LDFLAGS-c.so): Add -z now if so configured. * elf/Makefile ($(objpfx)ld.so): Likewise. * config.make.in (bind-now): New definition. --- Makerules | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makerules') diff --git a/Makerules b/Makerules index 7e955b657d..1018b43b3e 100644 --- a/Makerules +++ b/Makerules @@ -585,6 +585,10 @@ LDFLAGS-c.so = -nostdlib -nostartfiles LDLIBS-c.so += $(gnulib) # Give libc.so an entry point and make it directly runnable itself. LDFLAGS-c.so += -e __libc_main +# If lazy relocation is disabled add the -z now flag. +ifeq ($(bind-now),yes) +LDFLAGS-c.so += -Wl,-z,now +endif # Pre-link the objects of libc_pic.a so that we can locally resolve # COMMON symbols before we link against ld.so. This is because ld.so # contains some of libc_pic.a already, which will prevent the COMMONs -- cgit v1.2.3