summaryrefslogtreecommitdiff
path: root/ldso
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2010-06-02 10:17:40 -0700
committerKhem Raj <raj.khem@gmail.com>2010-06-02 10:17:40 -0700
commit38f4774eeefdfae24b82efaf61925015d21fe314 (patch)
tree839a78feb667d83af15ea2fd2dfbe4ce3da5f6be /ldso
parenta2e5630af426f85fdd8721b2820786d9bd2aa695 (diff)
ldso/mips: Fix relocation parsing so that they work on both mips32/mips64
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Rob Landley <rob@landley.net>
Diffstat (limited to 'ldso')
-rw-r--r--ldso/ldso/mips/elfinterp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldso/ldso/mips/elfinterp.c b/ldso/ldso/mips/elfinterp.c
index b6e0932c7..a56ee81b4 100644
--- a/ldso/ldso/mips/elfinterp.c
+++ b/ldso/ldso/mips/elfinterp.c
@@ -172,8 +172,8 @@ int _dl_parse_relocation_information(struct dyn_elf *xpnt,
for (i = 0; i < rel_size; i++, rpnt++) {
reloc_addr = (unsigned long *) (tpnt->loadaddr +
(unsigned long) rpnt->r_offset);
- reloc_type = ELF32_R_TYPE(rpnt->r_info);
- symtab_index = ELF32_R_SYM(rpnt->r_info);
+ reloc_type = ELF_R_TYPE(rpnt->r_info);
+ symtab_index = ELF_R_SYM(rpnt->r_info);
symbol_addr = 0;
debug_sym(symtab,strtab,symtab_index);