mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-27 04:41:02 +08:00
* sysdeps/mips/dl-machine.h (RESOLVE_GOTSYM): Fix calls to
dl_lookup. (ELF_MACHINE_RUNTIME_TRAMPOLINE): Likewise.
This commit is contained in:
parent
f8915f93dd
commit
5e817c4e87
@ -262,14 +262,14 @@ __dl_runtime_resolve (ElfW(Word) sym_index, \
|
|||||||
{ \
|
{ \
|
||||||
value = _dl_lookup_versioned_symbol(strtab + sym->st_name, l, \
|
value = _dl_lookup_versioned_symbol(strtab + sym->st_name, l, \
|
||||||
&sym, l->l_scope, version,\
|
&sym, l->l_scope, version,\
|
||||||
R_MIPS_REL32); \
|
R_MIPS_REL32, 0); \
|
||||||
break; \
|
break; \
|
||||||
} \
|
} \
|
||||||
/* Fall through. */ \
|
/* Fall through. */ \
|
||||||
} \
|
} \
|
||||||
case 0: \
|
case 0: \
|
||||||
value = _dl_lookup_symbol (strtab + sym->st_name, l, &sym, \
|
value = _dl_lookup_symbol (strtab + sym->st_name, l, &sym, \
|
||||||
l->l_scope, R_MIPS_REL32); \
|
l->l_scope, R_MIPS_REL32, 0); \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
/* Currently value contains the base load address of the object \
|
/* Currently value contains the base load address of the object \
|
||||||
@ -495,14 +495,14 @@ elf_machine_got_rel (struct link_map *map, int lazy)
|
|||||||
value = _dl_lookup_versioned_symbol(strtab + sym->st_name,\
|
value = _dl_lookup_versioned_symbol(strtab + sym->st_name,\
|
||||||
map, \
|
map, \
|
||||||
&ref, scope, version, \
|
&ref, scope, version, \
|
||||||
R_MIPS_REL32); \
|
R_MIPS_REL32, 0); \
|
||||||
break; \
|
break; \
|
||||||
} \
|
} \
|
||||||
/* Fall through. */ \
|
/* Fall through. */ \
|
||||||
} \
|
} \
|
||||||
case 0: \
|
case 0: \
|
||||||
value = _dl_lookup_symbol (strtab + sym->st_name, map, &ref, \
|
value = _dl_lookup_symbol (strtab + sym->st_name, map, &ref, \
|
||||||
scope, R_MIPS_REL32); \
|
scope, R_MIPS_REL32, 0); \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
(ref)? value + ref->st_value: 0; \
|
(ref)? value + ref->st_value: 0; \
|
||||||
|
Loading…
Reference in New Issue
Block a user