Re: [arm-gnu] holy sections, batman!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [arm-gnu] holy sections, batman!



I'll give it a shot:

On Thu, Apr 22, 2010 at 11:25 AM, James <jamessteward@xxxxxxxxxxxxxxx> wrote:
> On Wed, 2010-04-21 at 12:18 -0400, Andrew Kohlsmith (mailing lists
> account) wrote:
>>         prog : {
>>                 *(.init)

Initilisation, normally the stack and processor setup that then calls main.

>>                 *(.fini)
Finalisation.  Runs after your program finishes to tidy up.  Not
needed on embedded.

>>                 *(.eh_frame)
Exception handler frames.  Used to unwind the call stack when an
exception happens

>>                 *(.init_array)
>>                 *(.fini_array)
No idea.  Might be an array of initialisation function pointers

>>                 *(.jcr)
'Java class registration'

>>                 *(.text)
Your application code

>>               *(.text.*)
Sub sections of you application code.  With -ffunction-sections each
function gets split into its own '.text.function-name' section

>>                 *(.rodata)
Read only data such as constant strings, jump tables, etc.

>>                 *(.rodata*)
Per function rodata

>>                 *(.glue_7)
>>                 *(.glue_7t)
I'd assume these are ARM/Thumb glue sections.

-- Michael