This is the mail archive of the
mailing list for the binutils project.
Re: sections, overview of their meaning?
On 5/7/06, Torsten Mohr <email@example.com> wrote:
Basically, i'd like to ask for nearly all sections in the
original V850 linker script, except the obvious ones like
.text, .data, .bss, ... . What is ".dynamic" doing, what
are all the .rel* and .rela* for?
The following document should give you the description of some of the
common sections including the .dynamic, .rel, .rela and others :
What about .ctors and .dtors? They sound like C++ constructors
and destructors, but do they contain code (ROM) or data (RAM)
used in the constructors?
<quote: http://www.delorie.com/gnu/docs/gcc/gccint_149.html >
The best way to handle static constructors works only for object file
formats which provide arbitrarily-named sections. A section is set
aside for a list of constructors, and another for a list of
destructors. Traditionally these are called `.ctors' and `.dtors'.
Each object file that defines an initialization function also puts a
word in the constructor section to point to that function. The linker
accumulates all these words into one contiguous `.ctors' section.
Termination functions are handled similarly.
" Reality is only something we believe in strongly. "