musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011年09月18日 16:42:06 -0400
committerRich Felker <dalias@aerifal.cx>2011年09月18日 16:42:06 -0400
commit4f4bf0ad2e8c729de92db06318b9614ab2cdcc5c (patch)
tree571d18fe6824100db43212525308bae3629d0dfa
parentb0c088ee550634e07a6289a8ac98cb8009f81c66 (diff)
downloadmusl-4f4bf0ad2e8c729de92db06318b9614ab2cdcc5c.tar.gz
disable dynamic linking/loading code in static libc builds, for now
it does not work, but some configure scripts will falsely detect support then generate programs that crash when they call dlopen.
Diffstat
-rw-r--r--src/ldso/dynlink.c 2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c
index 57a5ba46..1b55e077 100644
--- a/src/ldso/dynlink.c
+++ b/src/ldso/dynlink.c
@@ -1,3 +1,4 @@
+#ifdef __PIC__
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -681,3 +682,4 @@ int dlclose(void *p)
{
return 0;
}
+#endif
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月05日 04:30:22 +0000

AltStyle によって変換されたページ (->オリジナル) /