#define ELF_MACHINE_NAME "MIPS"
+#define ELF_MACHINE_NO_PLT
+
#include <assert.h>
#include <entry.h>
ElfW(Addr) *got;
ElfW(Sym) *sym;
int i, n;
- struct link_map **scope;
const char *strtab
= ((void *) map->l_addr + map->l_info[DT_STRTAB]->d_un.d_ptr);
({ \
const ElfW(Sym) *ref = sym; \
ElfW(Addr) sym_loadaddr; \
- sym_loadaddr = _dl_lookup_symbol (strtab + sym->st_name, &ref, scope, \
+ sym_loadaddr = _dl_lookup_symbol (strtab + sym->st_name, &ref, \
+ map->l_scope, \
map->l_name, ELF_MACHINE_RELOC_NOPLT);\
(ref)? sym_loadaddr + ref->st_value: 0; \
})
while (i < n)
got[i++] += map->l_addr;
- /* Set scope. */
- scope = _dl_object_relocation_scope (map);
-
/* Handle global got entries. */
got += n;
sym = (ElfW(Sym) *) ((void *) map->l_addr
}
#undef RESOLVE_GOTSYM
- *_dl_global_scope_end = NULL;
return;
}
const ElfW(Sym) *definer; \
ElfW(Addr) loadbase; \
ElfW(Addr) funcaddr; \
- struct link_map **scope; \
\
/* Look up the symbol's run-time value. */ \
- scope = _dl_object_relocation_scope (l); \
definer = &symtab[sym_index]; \
\
loadbase = _dl_lookup_symbol (strtab + definer->st_name, &definer, \
- scope, l->l_name, ELF_MACHINE_RELOC_NOPLT); \
- \
- *_dl_global_scope_end = NULL; \
+ l->l_scope, l->l_name, \
+ ELF_MACHINE_RELOC_NOPLT); \
\
/* Apply the relocation with that value. */ \
funcaddr = loadbase + definer->st_value; \
#define ELF_MACHINE_NAME "MIPS"
+#define ELF_MACHINE_NO_PLT
+
#include <assert.h>
#include <entry.h>
ElfW(Addr) *got;
ElfW(Sym) *sym;
int i, n;
- struct link_map **scope;
const char *strtab
= ((void *) map->l_addr + map->l_info[DT_STRTAB]->d_un.d_ptr);
({ \
const ElfW(Sym) *ref = sym; \
ElfW(Addr) sym_loadaddr; \
- sym_loadaddr = _dl_lookup_symbol (strtab + sym->st_name, &ref, scope, \
+ sym_loadaddr = _dl_lookup_symbol (strtab + sym->st_name, &ref, \
+ map->l_scope, \
map->l_name, ELF_MACHINE_RELOC_NOPLT);\
(ref)? sym_loadaddr + ref->st_value: 0; \
})
while (i < n)
got[i++] += map->l_addr;
- /* Set scope. */
- scope = _dl_object_relocation_scope (map);
-
/* Handle global got entries. */
got += n;
sym = (ElfW(Sym) *) ((void *) map->l_addr
}
#undef RESOLVE_GOTSYM
- *_dl_global_scope_end = NULL;
return;
}
const ElfW(Sym) *definer; \
ElfW(Addr) loadbase; \
ElfW(Addr) funcaddr; \
- struct link_map **scope; \
\
/* Look up the symbol's run-time value. */ \
- scope = _dl_object_relocation_scope (l); \
definer = &symtab[sym_index]; \
\
loadbase = _dl_lookup_symbol (strtab + definer->st_name, &definer, \
- scope, l->l_name, ELF_MACHINE_RELOC_NOPLT); \
- \
- *_dl_global_scope_end = NULL; \
+ l->l_scope, l->l_name, \
+ ELF_MACHINE_RELOC_NOPLT); \
\
/* Apply the relocation with that value. */ \
funcaddr = loadbase + definer->st_value; \