in reply to [OT] Abusing GNU compiler and linker: Make the linker generate an array of function pointers
Using Perlmonks as a rubber duck ... ;-)
All that I need is a way to tell the linker to stop cleaning up my precious section. Shouldn't be that hard, right?
It isn't that hard. Just tell the linker to KEEP records in my section. Exactly as it is done by default for constructor functions. D'oh!
Now my plan works.
Alexander
|
|---|