From 10f4ebd2cc7347b9f07c256f6281230b476a07d5 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Mon, 2 Jan 2017 15:25:51 +0000 Subject: Remove the (now unused) code to determine the page size. Also get rid of the extern declaration of __got_{start,end}. ok guenther@ --- lib/csu/boot.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'lib/csu') diff --git a/lib/csu/boot.h b/lib/csu/boot.h index 5a79acb6dbd..e4e130bcfe3 100644 --- a/lib/csu/boot.h +++ b/lib/csu/boot.h @@ -1,4 +1,4 @@ -/* $OpenBSD: boot.h,v 1.26 2016/12/24 16:00:35 kettenis Exp $ */ +/* $OpenBSD: boot.h,v 1.27 2017/01/02 15:25:50 kettenis Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -86,9 +86,6 @@ struct boot_dyn { */ void _dl_boot_bind(const long, long *, Elf_Dyn *); -extern char __got_start[]; -extern char __got_end[]; - void _dl_boot_bind(const long sp, long *dl_data, Elf_Dyn *dynamicp) { @@ -98,7 +95,6 @@ _dl_boot_bind(const long sp, long *dl_data, Elf_Dyn *dynamicp) Elf_Dyn *dynp; Elf_Addr start; size_t size; - int pagesize; int n, argc; char **argv, **envp; long loff; @@ -212,11 +208,6 @@ _dl_boot_bind(const long sp, long *dl_data, Elf_Dyn *dynamicp) * them read-only. */ - if (dl_data[AUX_pagesz] != 0) - pagesize = dl_data[AUX_pagesz]; - else - pagesize = 4096; - /* do any RWX -> RX fixups for executable PLTs and apply GNU_RELRO */ phdp = (Elf_Phdr *)dl_data[AUX_phdr]; for (i = 0; i < dl_data[AUX_phnum]; i++, phdp++) { -- cgit v1.2.3