summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-05-31 23:49:09 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-05-31 23:49:09 +0000
commit0fa9b1987d736744fcb4ce51d6fc15c15af2d1ce (patch)
tree1f463f69034286eea6a7b2772fcce334045a85f7
parentdc5e615435dae62970bd0726869f2da088e4a6f9 (diff)
Apparently GLOB_DAT needs r_addend.
"Hello, world!\n" now works with libc.so
-rw-r--r--libexec/ld.so/alpha/rtld_machine.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ld.so/alpha/rtld_machine.c b/libexec/ld.so/alpha/rtld_machine.c
index 0c9e42b10f1..e3271f1b603 100644
--- a/libexec/ld.so/alpha/rtld_machine.c
+++ b/libexec/ld.so/alpha/rtld_machine.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtld_machine.c,v 1.4 2001/05/31 22:10:49 art Exp $ */
+/* $OpenBSD: rtld_machine.c,v 1.5 2001/05/31 23:49:08 art Exp $ */
/*
* Copyright (c) 1999 Dale Rahn
@@ -130,7 +130,7 @@ _dl_md_reloc(elf_object_t *object, int rel, int relasz)
ooff = _dl_find_symbol(symn, _dl_objects, &this, 0, 1);
if (this == NULL)
goto resolve_failed;
- *r_addr = ooff + this->st_value;
+ *r_addr = ooff + this->st_value + relas->r_addend;
break;
case R_TYPE(NONE):
break;