.init and .fini sections

Chris Johns chrisj at rtems.org
Thu Aug 7 07:17:08 UTC 2008


Bassem Fahmy wrote:
>  
> what are these sections? they appear in the arm bsp linker scripts 
> before and after the etext sections. are they for c++ constructors and 
> destructors? if i'm disabling cxx do i still need these sections?
>  

Yes they are for C++. If you do not use C++ they will be empty and nothing 
will happen.

They are provided in case you link to a 3rd party library that is written in C++.

Regards
Chris



More information about the users mailing list