summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/lib/ctors.c
AgeCommit message (Collapse)AuthorFilesLines
2010-06-24[firmware] fix code that iterates over constructorsHarald Welte1-3/+7
the first element after __CTORS_LIST__ contains the number of constructor callbacks in the following array, so we have to skip it.
2010-06-24[firmware] Add support for __attribute__ ((constructor))Harald Welte1-0/+11
We modify the linker scripts to include the .ctors and .dtors sections and add some code to actually call them before we jump to the main() function.