summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-08-09 12:08:57 +0000
committerEric Andersen <andersen@codepoet.org>2002-08-09 12:08:57 +0000
commit0af25e081cb00b49b073cfdc58a322e9cb9ecd37 (patch)
tree5e26cac3f27b12e6f6fc751b58f6b069c0d4ab12
parent73307a085a839307c433ee7ce35f09c4df86b250 (diff)
Disable this code for mips, which does things quite differently...
-Erik
-rw-r--r--ldso/ldso/dl-hash.c4
-rw-r--r--ldso/ldso/hash.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ldso/ldso/dl-hash.c b/ldso/ldso/dl-hash.c
index 5711bebaa..94744de3c 100644
--- a/ldso/ldso/dl-hash.c
+++ b/ldso/ldso/dl-hash.c
@@ -185,7 +185,7 @@ char *_dl_find_hash(char *name, struct dyn_elf *rpnt1,
that any shared library data symbols referenced in the executable
will be seen at the same address by the executable, shared libraries
and dynamically loaded code. -Rob Ryan (robr@cmu.edu) */
- if (copyrel!=caller_type && rpnt1) {
+ if (!caller_type && rpnt1) {
first = (*_dl_symbol_tables);
first.next = rpnt1;
rpnt1 = (&first);
@@ -299,6 +299,7 @@ char *_dl_find_hash(char *name, struct dyn_elf *rpnt1,
break;
}
}
+#ifndef __mips__
/*
* References to the address of a function from an executable file and
* the shared objects associated with it might not resolve to the same
@@ -316,6 +317,7 @@ char *_dl_find_hash(char *name, struct dyn_elf *rpnt1,
{
return (char*)symtab[si].st_value;
}
+#endif
}
}
}
diff --git a/ldso/ldso/hash.c b/ldso/ldso/hash.c
index 5711bebaa..94744de3c 100644
--- a/ldso/ldso/hash.c
+++ b/ldso/ldso/hash.c
@@ -185,7 +185,7 @@ char *_dl_find_hash(char *name, struct dyn_elf *rpnt1,
that any shared library data symbols referenced in the executable
will be seen at the same address by the executable, shared libraries
and dynamically loaded code. -Rob Ryan (robr@cmu.edu) */
- if (copyrel!=caller_type && rpnt1) {
+ if (!caller_type && rpnt1) {
first = (*_dl_symbol_tables);
first.next = rpnt1;
rpnt1 = (&first);
@@ -299,6 +299,7 @@ char *_dl_find_hash(char *name, struct dyn_elf *rpnt1,
break;
}
}
+#ifndef __mips__
/*
* References to the address of a function from an executable file and
* the shared objects associated with it might not resolve to the same
@@ -316,6 +317,7 @@ char *_dl_find_hash(char *name, struct dyn_elf *rpnt1,
{
return (char*)symtab[si].st_value;
}
+#endif
}
}
}