summaryrefslogtreecommitdiffstats
path: root/sys/kern/exec_elf.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2017-02-08 04:47:23 +0000
committerguenther <guenther@openbsd.org>2017-02-08 04:47:23 +0000
commit1809cfc628efe466f6eb5d3cc06e182e3ab66cd7 (patch)
tree14ca904e5b4e4839886e89e0350f150554ab506b /sys/kern/exec_elf.c
parentProvide size-generic ELF_NO_ADDR in <sys/exec_elf.h> and use that instead (diff)
downloadwireguard-openbsd-1809cfc628efe466f6eb5d3cc06e182e3ab66cd7.tar.xz
wireguard-openbsd-1809cfc628efe466f6eb5d3cc06e182e3ab66cd7.zip
elf{32,64}_check_brand() isn't used; delete it
ok jca@
Diffstat (limited to 'sys/kern/exec_elf.c')
-rw-r--r--sys/kern/exec_elf.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/sys/kern/exec_elf.c b/sys/kern/exec_elf.c
index 11ac6ffc845..c02551b3a27 100644
--- a/sys/kern/exec_elf.c
+++ b/sys/kern/exec_elf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec_elf.c,v 1.132 2017/02/08 04:34:29 guenther Exp $ */
+/* $OpenBSD: exec_elf.c,v 1.133 2017/02/08 04:47:23 guenther Exp $ */
/*
* Copyright (c) 1996 Per Fogelstrom
@@ -843,18 +843,6 @@ ELFNAME2(exec,fixup)(struct proc *p, struct exec_package *epp)
return (error);
}
-/*
- * Older ELF binaries use EI_ABIVERSION (formerly EI_BRAND) to brand
- * executables. Newer ELF binaries use EI_OSABI instead.
- */
-char *
-ELFNAME(check_brand)(Elf_Ehdr *eh)
-{
- if (eh->e_ident[EI_ABIVERSION] == '\0')
- return (NULL);
- return (&eh->e_ident[EI_ABIVERSION]);
-}
-
int
ELFNAME(os_pt_note)(struct proc *p, struct exec_package *epp, Elf_Ehdr *eh,
char *os_name, size_t name_size, size_t desc_size)