This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Sections (.got .got2 .gcc_except_table .fixup), what are they for?
- From: Ian Lance Taylor <iant at google dot com>
- To: Jeff Lasslett <jeff dot lasslett at datataker dot com dot au>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 24 Aug 2006 09:16:44 -0700
- Subject: Re: Sections (.got .got2 .gcc_except_table .fixup), what are they for?
- References: <44ED3309.4050403@datataker.com.au>
Jeff Lasslett <jeff.lasslett@datataker.com.au> writes:
> I can't seem to find an explanation of the nature of the following sections:
The question may be more appropriate for the binutils@sourceware.org
mailing list. See http://sourceware.org/binutils/.
You neglected to mention your target. It matters.
> .got
>
> .got2
These will contain the global offset table.
> .gcc_except_table
This will contain information used for unwinding the stack during
exception handling.
> .fixup
The Linux kernel uses this section to record relocation information
used at run time.
To see whether the section can be stored in ROM or RAM, see whether it
is readonly. You can do this via objdump -h or readelf -S. A
readonly section may be stored in ROM. Otherwise it must normally be
in RAM.
Most likely all the sections above can be stored in ROM.
Ian