summaryrefslogtreecommitdiff
path: root/lib/csu
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2017-01-02 15:25:51 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2017-01-02 15:25:51 +0000
commit10f4ebd2cc7347b9f07c256f6281230b476a07d5 (patch)
tree4c8ea33369e43514d7ab62bd3bd2ebb3c5e1ca4a /lib/csu
parent434b0d79b2e582979f9c7fef8e270d2e802f0d5a (diff)
Remove the (now unused) code to determine the page size. Also get rid of
the extern declaration of __got_{start,end}. ok guenther@
Diffstat (limited to 'lib/csu')
-rw-r--r--lib/csu/boot.h11
1 files changed, 1 insertions, 10 deletions
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++) {