-/* $OpenBSD: boot.h,v 1.8 2014/12/27 13:17:51 kettenis Exp $ */
+/* $OpenBSD: boot.h,v 1.9 2014/12/29 20:18:20 kettenis Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
else
pagesize = 4096;
-#if defined(__alpha__) || defined(__sparc64__)
+#if defined(__alpha__) || defined(__powerpc__) || defined(__sparc64__)
start = ELF_TRUNC((Elf_Addr)__plt_start, pagesize);
size = ELF_ROUND((Elf_Addr)__plt_end - start, pagesize);
mprotect((void *)start, size, PROT_READ);