From 1aa73db2e92b554667d3632da6e61350cc2c044b Mon Sep 17 00:00:00 2001 From: Philip Guenther Date: Wed, 27 Nov 2019 00:59:00 +0000 Subject: unifdef: hppa does HAVE_JMPREL and does not have DT_PROCNUM --- libexec/ld.so/hppa/boot_md.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'libexec/ld.so/hppa/boot_md.c') diff --git a/libexec/ld.so/hppa/boot_md.c b/libexec/ld.so/hppa/boot_md.c index 4d1604b9923..bfdba296cbb 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.1 2019/10/20 03:44:49 guenther Exp $ */ +/* $OpenBSD: boot_md.c,v 1.2 2019/11/27 00:58:59 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) { -- cgit v1.2.3