From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17900 invoked by alias); 6 Sep 2013 08:24:32 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 17887 invoked by uid 89); 6 Sep 2013 08:24:31 -0000 Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 06 Sep 2013 08:24:31 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.7 required=5.0 tests=AWL,BAYES_00,GARBLED_BODY,KHOP_THREADED,RDNS_NONE,SPF_HELO_FAIL autolearn=no version=3.3.2 X-HELO: relay1.mentorg.com Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1VHrL8-0007VX-6N from Yao_Qi@mentor.com ; Fri, 06 Sep 2013 01:24:26 -0700 Received: from SVR-ORW-FEM-04.mgc.mentorg.com ([147.34.97.41]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Fri, 6 Sep 2013 01:24:25 -0700 Received: from qiyao.dyndns.org (147.34.91.1) by svr-orw-fem-04.mgc.mentorg.com (147.34.97.41) with Microsoft SMTP Server id 14.2.247.3; Fri, 6 Sep 2013 01:24:25 -0700 Message-ID: <522990FF.30608@codesourcery.com> Date: Fri, 06 Sep 2013 08:24:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: Eli Zaretskii CC: Subject: Re: [PATCH 0/3] Trust readonly sections if target has memory protection References: <1378432920-7731-1-git-send-email-yao@codesourcery.com> <83txhymr02.fsf@gnu.org> In-Reply-To: <83txhymr02.fsf@gnu.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2013-09/txt/msg00206.txt.bz2 On 09/06/2013 01:57 PM, Eli Zaretskii wrote: > Which "ancient" Windows versions are those? Can't we decide at run > time whether to trust read-only sections, by looking at the Windows > version? I meant Windows 3.0 and 9x, which don't have a full memory protection, AFAIK. http://en.wikipedia.org/wiki/Memory_protection tells me that "Windows family from Windows NT 3.1" have memory protection. Yes, we can extend osdata mechanism to get os version, and decide whether to trust read-only sections. -- Yao (齐尧)