Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: [OT] Abusing GNU compiler and linker: Make the linker generate an array of function pointers

by afoken (Chancellor)
on Oct 16, 2019 at 20:01 UTC ( [id://11107561]=note: print w/replies, xml ) Need Help??


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

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
  • Comment on Re: [OT] Abusing GNU compiler and linker: Make the linker generate an array of function pointers
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11107561]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-24 23:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found