This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[glibc] elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now


https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c57afec0a9b318bb691e0f5fa4e9681cf30df7a4

commit c57afec0a9b318bb691e0f5fa4e9681cf30df7a4
Author: Florian Weimer <fweimer@redhat.com>
Date:   Fri Apr 26 07:16:56 2019 +0200

    elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now
    
    The audit module itself can be linked with BIND_NOW; it does not
    affect its functionality.
    
    This should complete the leftovers from commit
    2d6ab5df3b675e96ee587ae6a8c2ce004c6b1ba9 ("Document and fix
    --enable-bind-now [BZ #21015]").

Diff:
---
 ChangeLog    | 5 +++++
 elf/Makefile | 1 +
 2 files changed, 6 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index a4f9c9e..aac356b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2019-04-26  Florian Weimer  <fweimer@redhat.com>
 
+	elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
+	* elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
+
+2019-04-26  Florian Weimer  <fweimer@redhat.com>
+
 	Makeconfig: Move -Wl,-rpath-link options before library references.
 	* Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
 	(link-libc): Remove $(link-libc-rpath-link).
diff --git a/elf/Makefile b/elf/Makefile
index 0b4a877..4895489 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -125,6 +125,7 @@ install-others += $(inst_auditdir)/sotruss-lib.so
 install-bin-script += sotruss
 generated += sotruss
 libof-sotruss-lib = extramodules
+LDFLAGS-sotruss-lib.so += $(z-now-$(bind-now))
 $(objpfx)sotruss-lib.so: $(objpfx)sotruss-lib.os
 	$(build-module-asneeded)
 $(objpfx)sotruss-lib.so: $(common-objpfx)libc.so $(objpfx)ld.so \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]