I recently started using --gen_func_subsections to allow the linker to leave out unreferenced functions.
Is there any way in source code to override this behavior for a particular function, either by:
(a) forcing a particular function to be placed into exactly the section I specify, and *not* a subsection as seems to be the case with --gen_func_subsections
(b) somehow telling the compiler to mark a function as needs-to-be-included in the output executable, even though it never gets called?
The only way I can think of is to store the address of the function in a static dummy variable, but I'm not sure that will work.