25 lines
748 B
Diff
25 lines
748 B
Diff
From 2eacc0a1edf1912cc3438e80ac49ed910a80ddf4 Mon Sep 17 00:00:00 2001
|
|
From: lipengyu <lipengyu@kylinos.cn>
|
|
Date: Sat, 8 Mar 2025 02:21:06 +0800
|
|
Subject: [PATCH] Link sotruss-lib.so with BIND_NOW for --enable-bind-now
|
|
|
|
---
|
|
elf/Makefile | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/elf/Makefile b/elf/Makefile
|
|
index 27c6296f..7ef6f7d1 100644
|
|
--- a/elf/Makefile
|
|
+++ b/elf/Makefile
|
|
@@ -134,6 +134,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 \
|
|
--
|
|
2.27.0
|
|
|