From owner-p4-projects Wed Jun 19 0:32:14 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id C332D37B414; Wed, 19 Jun 2002 00:32:06 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 26B1D37B413 for ; Wed, 19 Jun 2002 00:32:06 -0700 (PDT) Received: (from perforce@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g5J7W5m23890 for perforce@freebsd.org; Wed, 19 Jun 2002 00:32:05 -0700 (PDT) (envelope-from peter@freebsd.org) Date: Wed, 19 Jun 2002 00:32:05 -0700 (PDT) Message-Id: <200206190732.g5J7W5m23890@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to peter@freebsd.org using -f From: Peter Wemm Subject: PERFORCE change 13147 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://people.freebsd.org/~peter/p4db/chv.cgi?CH=13147 Change 13147 by peter@peter_ia64 on 2002/06/19 00:31:39 Sigh, the x86 cvsup binary immediately tries to execute its data segment. This hack doesn't deserve to see the light of day, and doesn't solve all the M3 runtime problems. But it might come in handy some day. Affected files ... ... //depot/projects/ia64/sys/kern/imgact_elf.c#10 edit Differences ... ==== //depot/projects/ia64/sys/kern/imgact_elf.c#10 (text+ko) ==== @@ -676,6 +676,15 @@ if (phdr[i].p_flags & PF_R) prot |= VM_PROT_READ; +#if defined(__ia64__) && __ELF_WORD_SIZE == 32 && defined(IA32_ME_HARDER) + /* + * Some x86 binaries assume read == executable, + * notably the M3 runtime and therefore cvsup + */ + if (prot & VM_PROT_READ) + prot |= VM_PROT_EXECUTE; +#endif + if ((error = __elfN(load_section) (imgp->proc, vmspace, imgp->vp, To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message