summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoakim Tjernlund <joakim.tjernlund@transmode.se>2004-08-19 09:52:27 +0000
committerJoakim Tjernlund <joakim.tjernlund@transmode.se>2004-08-19 09:52:27 +0000
commit7761b1079114405c4cf63430576c33f60f1ab86f (patch)
treeb373067e1a69d33adf03891997b05e6642f2a16d
parent85c39a6b662b54793e3acd2667522473e8815612 (diff)
Accunt for ELF_MACHINE_PLTREL_OVERLAP when relocating ldso.
-rw-r--r--ldso/ldso/dl-startup.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/ldso/ldso/dl-startup.c b/ldso/ldso/dl-startup.c
index 3ffbf3d34..4b446edac 100644
--- a/ldso/ldso/dl-startup.c
+++ b/ldso/ldso/dl-startup.c
@@ -343,9 +343,13 @@ found_got:
#ifdef __SUPPORT_LD_DEBUG_EARLY__
SEND_STDERR("About to do library loader relocations\n");
#endif
-
+#ifdef ELF_MACHINE_PLTREL_OVERLAP
+# define INDX_MAX 1
+#else
+# define INDX_MAX 2
+#endif
goof = 0;
- for (indx = 0; indx < 2; indx++) {
+ for (indx = 0; indx < INDX_MAX; indx++) {
unsigned int i;
ELF_RELOC *rpnt;
unsigned long *reloc_addr;