Next: , Previous: Startup codes, Up: Startup codes

6.1.1 Startup code interface

The startup codes do the following:

__INIT_LIST__’ and ‘__EXIT_LIST__’ are two set elements which are a speciality of the gnu ld. Since everything that needs initialization works over these two lists the bare startups are very short. In fact they are even shorter then some low-level-startups

You can easily add your own functions to the startup procedure by using the macros in the file ‘headers/stabs.h’ - but keep in mind that this is non-portable. Priority values <=0 are reserved for library implementors.