From 732b5469fe955da7cf2c9309b6e7ef153ec24d41 Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Fri, 11 Sep 1998 18:30:55 +0000 Subject: [PATCH] Add the r_addend of the relocation when processing GLOB_DAT relocations. --- libexec/rtld-elf/alpha/reloc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libexec/rtld-elf/alpha/reloc.c b/libexec/rtld-elf/alpha/reloc.c index a2d37530d32..c88162c97ef 100644 --- a/libexec/rtld-elf/alpha/reloc.c +++ b/libexec/rtld-elf/alpha/reloc.c @@ -22,7 +22,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: reloc.c,v 1.1 1998/09/04 19:03:57 dfr Exp $ + * $Id: reloc.c,v 1.2 1998/09/08 09:47:35 dfr Exp $ */ /* @@ -94,9 +94,9 @@ reloc_non_plt_obj(Obj_Entry *obj_rtld, const Obj_Entry *obj, return -1; if (*where != (Elf_Addr) (defobj->relocbase + - def->st_value)) + def->st_value + rela->r_addend)) *where = (Elf_Addr) (defobj->relocbase + - def->st_value); + def->st_value + rela->r_addend); } break;