[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
.init and .fini sections
- Date: Thu, 07 Aug 2008 17:17:08 +1000
- From: chrisj at rtems.org (Chris Johns)
- Subject: .init and .fini sections
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