public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* How to emit .gptab section?
@ 2003-04-09 12:27 Bharathi Seshadri
  2003-04-10 10:29 ` Nick Clifton
  0 siblings, 1 reply; 2+ messages in thread
From: Bharathi Seshadri @ 2003-04-09 12:27 UTC (permalink / raw)
  To: binutils

Hi,

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. 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?

Thanks for your time.

-Bharathi 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to emit .gptab section?
  2003-04-09 12:27 How to emit .gptab section? Bharathi Seshadri
@ 2003-04-10 10:29 ` Nick Clifton
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Clifton @ 2003-04-10 10:29 UTC (permalink / raw)
  To: Bharathi Seshadri; +Cc: binutils

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-04-10 10:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-09 12:27 How to emit .gptab section? Bharathi Seshadri
2003-04-10 10:29 ` Nick Clifton

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).