public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Sections (.got .got2 .gcc_except_table .fixup), what are they for?
@ 2006-08-25  3:14 Jeff Lasslett
  2006-09-08 15:34 ` Nick Clifton
  0 siblings, 1 reply; 2+ messages in thread
From: Jeff Lasslett @ 2006-08-25  3:14 UTC (permalink / raw)
  To: binutils

Hello,

I originally asked this question on the gcc-help mailing list but was advised
that the question might best be posed here.

My target is powerpc-eabi.

I can't seem to find an explanation of the nature of the following sections:

.got

.got2

.gcc_except_table

.fixup


My questions are as follows ...

For each section mentioned,
	(a) what is stored in the section?
	(b) should it be in ROM or RAM?
	    (Is its contents adjusted at runtime?)

I've currently got them all in flash (ROM) and it all seems to work but I'm
nervous because I don't know why it works or whether it will always work.

Cheers,
	Jeff

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

* Re: Sections (.got .got2 .gcc_except_table .fixup), what are they  for?
  2006-08-25  3:14 Sections (.got .got2 .gcc_except_table .fixup), what are they for? Jeff Lasslett
@ 2006-09-08 15:34 ` Nick Clifton
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Clifton @ 2006-09-08 15:34 UTC (permalink / raw)
  To: Jeff Lasslett; +Cc: binutils

Hi Jeff,

> My target is powerpc-eabi.
> 
> I can't seem to find an explanation of the nature of the following 
> sections:

> .got
Try looking at the PowerPC EABI document.  You can download a copy from 
here:

   ftp://ftp.linuxppc64.org/pub/people/amodra/

> .got2

This must be similar to the .got section, although I do not know its 
exact semantics.

> .gcc_except_table

This is to do with C++ exception handling.

> .fixup

I think that this section is redundant and was only used by old versions 
of gcc.

Cheers
   Nick



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

end of thread, other threads:[~2006-09-08 15:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-25  3:14 Sections (.got .got2 .gcc_except_table .fixup), what are they for? Jeff Lasslett
2006-09-08 15:34 ` 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).