summaryrefslogtreecommitdiff
path: root/ldso
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-02-18 07:34:44 +0000
committerEric Andersen <andersen@codepoet.org>2002-02-18 07:34:44 +0000
commitdc3cbf11415312c6a28dc8c652ee2bec7e6a6f8e (patch)
tree50cbb15eb9ceadea1c95768e6aff979490a70967 /ldso
parent5ebc0e434f0c55d7b1632904e3c1ce18cff34f8f (diff)
Whine and exit if people link against GNU libc or
GNU libc linked shared libraries.
Diffstat (limited to 'ldso')
-rw-r--r--ldso/ldso/ldso.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ldso/ldso/ldso.c b/ldso/ldso/ldso.c
index 300bef758..6a3f19c72 100644
--- a/ldso/ldso/ldso.c
+++ b/ldso/ldso/ldso.c
@@ -859,8 +859,11 @@ static void _dl_get_ready_to_run(struct elf_resolve *tpnt, struct elf_resolve *a
if (dpnt->d_tag == DT_NEEDED) {
lpntstr = tcurr->loadaddr + tcurr->dynamic_info[DT_STRTAB] +
dpnt->d_un.d_val;
- if (tpnt && _dl_strcmp(lpntstr,
- _dl_get_last_path_component(tpnt->libname)) == 0) {
+ if (_dl_strcmp(lpntstr, "libc.so.6") == 0) {
+ _dl_dprintf(2, "%s: linked against GNU libc!\n", _dl_progname);
+ _dl_exit(150);
+ }
+ if (tpnt && _dl_strcmp(lpntstr, _dl_get_last_path_component(tpnt->libname)) == 0) {
struct elf_resolve *ttmp;
#ifdef DL_TRACE