genode/os/src/platform/genode_dyn.dl
Martin Stein 324af5d769 os: make program ctors and dtors visible to LDSO
This is needed later when eliminating the need for a startup lib in
dynamic programs to enable LDSO to call ctors and dtors of the program.

Issue #1042
2014-02-25 14:58:07 +01:00

17 lines
483 B
Plaintext

/*
* Symbols that shall always be added to the section '.dynsym'
*/
{
/*
* The ctors and dtors symbols are not used by a dynamic program as such
* programs have no '_main' function. Hence the linker doesn't add them to
* the dynsym section by itself. However, we need to lookup the ctors and
* dtors arrays of the dynamic program in LDSO, which is why we must
* explicitely add them to the dynsym section.
*/
_ctors_start;
_ctors_end;
_dtors_start;
_dtors_end;
};