+Thu Jan 11 13:09:20 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
+
+ * elf/do-rel.h (elf_dynamic_do_rel): Use referring symbol as
+ referent for STB_LOCAL.
+
Wed Jan 10 10:11:39 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* time/africa, time/antarctica, time/asia, time/australasia,
/* Do relocations for ELF dynamic linking.
-Copyright (C) 1995 Free Software Foundation, Inc.
+Copyright (C) 1995, 1996 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
static inline void
elf_dynamic_do_rel (struct link_map *map,
- int reltag, int sztag,
+ int reltag, int sztag,
Elf32_Addr (*resolve) (const Elf32_Sym **symbol,
Elf32_Addr r_offset),
int lazy)
if (ELF32_R_SYM (r->r_info) == STN_UNDEF)
loadbase = 0; /* This value will not be consulted. */
+ else if (ELF32_ST_BIND (definer->st_info) == STB_LOCAL)
+ /* Local symbols always refer to the containing object. */
+ loadbase = map->l_addr;
else
{
if (resolve)