diff options
author | dfr <dfr@FreeBSD.org> | 1998-09-11 18:30:55 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1998-09-11 18:30:55 +0000 |
commit | 206d048a70f68604b135903872db6b08a8523337 (patch) | |
tree | 947e858ad58df59b4db795d9ed91af190e232e22 /libexec | |
parent | ba6f5fedab6367a9afe4843a13a0b4a5e9ef9520 (diff) | |
download | FreeBSD-src-206d048a70f68604b135903872db6b08a8523337.zip FreeBSD-src-206d048a70f68604b135903872db6b08a8523337.tar.gz |
Add the r_addend of the relocation when processing GLOB_DAT relocations.
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/rtld-elf/alpha/reloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/rtld-elf/alpha/reloc.c b/libexec/rtld-elf/alpha/reloc.c index a2d3753..c88162c 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; |