summaryrefslogtreecommitdiff
path: root/ldso/ldso/ld_hash.h
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2001-11-12 03:06:38 +0000
committerDavid Schleef <ds@schleef.org>2001-11-12 03:06:38 +0000
commit46db40b0da939fb891d2f599e43d68b6ee4a3f8d (patch)
tree253b23838cb6142a83af0b57d1ac75d79e46c686 /ldso/ldso/ld_hash.h
parentd94663ec0e6009bc9b541e064c5bae1d5b788a98 (diff)
powerpc/elfinterp.c: Powerpc works now. Major rework; most relocs
should work now. R_PPC_JMP_SLOT correctly being lazily relocated. hash.h: Added a field in elf_resolve to store a ppc-specific address. boot1.c: Added debugging code. Disabled check that fails on powerpc because the string literal requires a reloc that isn't performed. Added check to ignore d_tag if it is out of bounds, as has been observed with powerpc binaries.
Diffstat (limited to 'ldso/ldso/ld_hash.h')
-rw-r--r--ldso/ldso/ld_hash.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ldso/ldso/ld_hash.h b/ldso/ldso/ld_hash.h
index 043b64aca..bb1b51fdc 100644
--- a/ldso/ldso/ld_hash.h
+++ b/ldso/ldso/ld_hash.h
@@ -70,6 +70,12 @@ struct elf_resolve{
unsigned long dynamic_size;
unsigned long n_phent;
Elf32_Phdr * ppnt;
+
+#ifdef __powerpc__
+ /* this is used to store the address of relocation data words, so
+ * we don't have to calculate it every time, which requires a divide */
+ unsigned long data_words;
+#endif
};
#if 0