public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Nick Clifton <nickc@redhat.com>
To: naveen yadav <yad.naveen@gmail.com>
Cc: binutils@sourceware.org
Subject: Re: PAGE Size change on MIPS
Date: Tue, 08 Feb 2011 12:44:00 -0000	[thread overview]
Message-ID: <4D513B09.3000602@redhat.com> (raw)
In-Reply-To: <AANLkTi=bpovqf1tNM+FEvLD=KykivD8100hwoEYVOvCb@mail.gmail.com>

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

      reply	other threads:[~2011-02-08 12:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-04  6:11 naveen yadav
2011-02-08 12:44 ` Nick Clifton [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D513B09.3000602@redhat.com \
    --to=nickc@redhat.com \
    --cc=binutils@sourceware.org \
    --cc=yad.naveen@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).