summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>2004-06-07 15:19:59 +0000
committermickey <mickey@openbsd.org>2004-06-07 15:19:59 +0000
commit9dbe46fae4fe3958e50ad4f7497e35aa12f36492 (patch)
tree3fe152fdeb343c98a26c2bc7607107e4f1266fe6
parentfixup the dlsym() return to produce a callable address (plabel) and move one comment closer to the code it talks about earlier; drahn@ ok (diff)
downloadwireguard-openbsd-9dbe46fae4fe3958e50ad4f7497e35aa12f36492.tar.xz
wireguard-openbsd-9dbe46fae4fe3958e50ad4f7497e35aa12f36492.zip
use the func args and not the key material to init a new plabel
-rw-r--r--libexec/ld.so/hppa/rtld_machine.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/ld.so/hppa/rtld_machine.c b/libexec/ld.so/hppa/rtld_machine.c
index 1011f3f75d8..5e59c32689d 100644
--- a/libexec/ld.so/hppa/rtld_machine.c
+++ b/libexec/ld.so/hppa/rtld_machine.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtld_machine.c,v 1.5 2004/06/07 07:13:35 mickey Exp $ */
+/* $OpenBSD: rtld_machine.c,v 1.6 2004/06/07 15:19:59 mickey Exp $ */
/*
* Copyright (c) 2004 Michael Shalayeff
@@ -83,8 +83,8 @@ _dl_md_plabel(Elf_Addr pc, Elf_Addr *sl)
p = _dl_malloc(sizeof(*p));
if (p == NULL)
_dl_exit(5);
- p->pc = key.pc;
- p->sl = key.sl;
+ p->pc = pc;
+ p->sl = sl;
SPLAY_INSERT(_dl_md_plabels, &_dl_md_plabel_root, p);
}