From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13400 invoked by alias); 8 Feb 2011 12:44:56 -0000 Received: (qmail 13390 invoked by uid 22791); 8 Feb 2011 12:44:55 -0000 X-SWARE-Spam-Status: No, hits=-6.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,TW_BJ,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 08 Feb 2011 12:44:49 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p18CilG6001504 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 8 Feb 2011 07:44:47 -0500 Received: from [10.36.5.101] (vpn1-5-101.ams2.redhat.com [10.36.5.101]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p18CijKV001342; Tue, 8 Feb 2011 07:44:46 -0500 Message-ID: <4D513B09.3000602@redhat.com> Date: Tue, 08 Feb 2011 12:44:00 -0000 From: Nick Clifton User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Thunderbird/3.1.7 MIME-Version: 1.0 To: naveen yadav CC: binutils@sourceware.org Subject: Re: PAGE Size change on MIPS References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2011-02/txt/msg00069.txt.bz2 Hi Naveen, > I want to change page size in kernel. shall I need to change in > binutils the following values. Yes. > How can i check what the max page size a particular > toolchain support. By looking at the code in the target specific files in the bfd library. The max page size can in theory be set to any number you like, but obviously the intention is that it matches the maximum page size supported by the runtime system where the built binaries will be executing. If you need to find out the max page size for an installed toolchain to which you do not have the sources you can use this technique: % touch empty.s % as empty.s -o empty.o % cat > pagesize.t SECTIONS { .foo : { LONG (CONSTANT(MAXPAGESIZE)) ; } } % ld -T pagesize.t empty.o % objdump -Dz a.out 00000000 <.foo>: 0: 00 10 add %dl,(%eax) 2: 00 00 add %al,(%eax) Voila, the max page size for this particular target is 0x1000. Cheers Nick