public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Nick Clifton <nickc@redhat.com>
To: Bharathi Seshadri <bseshadr@cisco.com>
Cc: binutils@sources.redhat.com
Subject: Re: How to emit .gptab section?
Date: Thu, 10 Apr 2003 10:29:00 -0000	[thread overview]
Message-ID: <m33ckqlk6j.fsf@workshop.nickc.cambridge.redhat.com> (raw)
In-Reply-To: <4.3.2.7.2.20030409172355.00ba6d10@desh.cisco.com>

Hi Bharathi,

> I would like to use the information from .gptab section to able to
> set the -G <num> appropriately.  However I am not able to emit the
> .gptab section in my image.

You should specify which version of binutils you are using.  This
might have been a bug in an old version which is now fixed.

You should also specify how you configured gcc and binutils and what
command line you are using to build your binaries.  Possibly the
problem is with how the tools were built or invoked.

> I compiled my soures with -g2 and -G4 with gcc version 2.95.3 and
> have not been able to see the .gptab section in the output image.
 
> Is there any special option that needs to be turned on or anything to
> be done in the ld script?

The .gptab seems to only be supported in the big-endian targeted
versions of the mips linker.  Compare ld/emulparams/elf32bmip.sh with
ld/emulparams/elf32lmip.sh for a demonstration of this.

So, either build binaries for a big endian mips, or copy the
OTHER_SECTIONS definition from elf32bmip.sh to elf32lmip.sh and rebuild
the linker.

Cheers
        Nick

      reply	other threads:[~2003-04-10 10:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-09 12:27 Bharathi Seshadri
2003-04-10 10:29 ` 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=m33ckqlk6j.fsf@workshop.nickc.cambridge.redhat.com \
    --to=nickc@redhat.com \
    --cc=binutils@sources.redhat.com \
    --cc=bseshadr@cisco.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).