about summary refs log tree commit diff
path: root/sysdeps/generic/dl-machine.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/dl-machine.h')
-rw-r--r--sysdeps/generic/dl-machine.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/generic/dl-machine.h b/sysdeps/generic/dl-machine.h
index da6c74bcaa..d74aebeb6d 100644
--- a/sysdeps/generic/dl-machine.h
+++ b/sysdeps/generic/dl-machine.h
@@ -1,5 +1,5 @@
 /* Machine-dependent ELF dynamic relocation inline functions.  Stub version.
-   Copyright (C) 1995, 1996, 1997, 1999 Free Software Foundation, Inc.
+   Copyright (C) 1995, 1996, 1997, 1999, 2000 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
@@ -117,7 +117,7 @@ elf_machine_runtime_setup (struct link_map *l, int lazy)
          in.  Their initial contents will arrange when called to push an
          offset into the .rel.plt section, push _GLOBAL_OFFSET_TABLE_[1],
          and then jump to _GLOBAL_OFFSET_TABLE[2].  */
-      Elf32_Addr *got = (Elf32_Addr *) l->l_info[DT_PLTGOT]->d_un.d_ptr;
+      Elf32_Addr *got = (Elf32_Addr *) D_PTR (l, l_info[DT_PLTGOT]);
       got[1] = (Elf32_Addr) l;	/* Identify this shared object.  */
 
       /* This function will get called to fix up the GOT entry indicated by