summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2019-11-28 16:57:17 +0000
committerguenther <guenther@openbsd.org>2019-11-28 16:57:17 +0000
commite8e9ef5be8f6f0515733b620e8a1330f3ae66ae9 (patch)
tree5a36943e750c68fd1f737611651c910bfdfd3b31 /libexec
parentRevert yesterday's _dl_md_reloc() and _dl_md_reloc_got() changes: (diff)
downloadwireguard-openbsd-e8e9ef5be8f6f0515733b620e8a1330f3ae66ae9.tar.xz
wireguard-openbsd-e8e9ef5be8f6f0515733b620e8a1330f3ae66ae9.zip
Unrevert: this change was unrelated
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ld.so/hppa/boot_md.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/libexec/ld.so/hppa/boot_md.c b/libexec/ld.so/hppa/boot_md.c
index 465e8a6f593..c0ba63ae03b 100644
--- a/libexec/ld.so/hppa/boot_md.c
+++ b/libexec/ld.so/hppa/boot_md.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: boot_md.c,v 1.3 2019/11/28 16:54:30 guenther Exp $ */
+/* $OpenBSD: boot_md.c,v 1.4 2019/11/28 16:57:17 guenther Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
@@ -63,12 +63,7 @@ struct boot_dyn {
Elf_Addr *dt_pltgot;
Elf_Addr dt_pltrelsz;
const Elf_Sym *dt_symtab;
-#ifdef HAVE_JMPREL
RELOC_TYPE *dt_jmprel;
-#endif
-#if DT_PROCNUM > 0
- u_long dt_proc[DT_PROCNUM];
-#endif
};
/*
@@ -134,26 +129,17 @@ _dl_boot_bind(const long sp, long *dl_data, Elf_Dyn *dynp)
dynld.dt_symtab = (void *)(dynp->d_un.d_ptr + loff);
else if (dynp->d_tag == RELOC_TAG) /* DT_{RELA,REL} */
dynld.dt_reloc = (void *)(dynp->d_un.d_ptr + loff);
-#ifdef HAVE_JMPREL
else if (dynp->d_tag == DT_JMPREL)
dynld.dt_jmprel = (void *)(dynp->d_un.d_ptr + loff);
-#endif
/* Now for the tags that are just sizes or counts */
else if (dynp->d_tag == DT_PLTRELSZ)
dynld.dt_pltrelsz = dynp->d_un.d_val;
else if (dynp->d_tag == RELOC_TAG+1) /* DT_{RELA,REL}SZ */
dynld.dt_relocsz = dynp->d_un.d_val;
-#if DT_PROCNUM > 0
- else if (dynp->d_tag >= DT_LOPROC &&
- dynp->d_tag < DT_LOPROC + DT_PROCNUM)
- dynld.dt_proc[dynp->d_tag - DT_LOPROC] =
- dynp->d_un.d_val;
-#endif /* DT_PROCNUM */
dynp++;
}
-#ifdef HAVE_JMPREL
rp = dynld.dt_jmprel;
for (i = 0; i < dynld.dt_pltrelsz; i += sizeof *rp) {
Elf_Addr *ra;
@@ -167,7 +153,6 @@ _dl_boot_bind(const long sp, long *dl_data, Elf_Dyn *dynp)
RELOC_JMPREL(rp, sp, ra, loff, dynld.dt_pltgot);
rp++;
}
-#endif /* HAVE_JMPREL */
rp = dynld.dt_reloc;
for (i = 0; i < dynld.dt_relocsz; i += sizeof *rp) {