Is it possible to force the inclusion of a certain library? Something like the "gcc -u" option, where you can add certain symbols that will be treated as undefined, which causes the library that defines them to be included in the final executable.
Thanks,
Wim
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks. I've tried this, but it doesn't seem to help. The problem is that, in my case, the library I want to add isn't referenced from anywhere (it will be, by a simulator under which I'll run the binary). And since this library isn't really needed, it's doesn't seem to be added by statifier either.
Regards,
Wim
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Is it possible to force the inclusion of a certain library? Something like the "gcc -u" option, where you can add certain symbols that will be treated as undefined, which causes the library that defines them to be included in the final executable.
Thanks,
Wim
Sure. That is what -set=LD_PRELOAD= is for (see http://statifier.sourceforge.net/statifier/man/statifier.1.html)
Thanks. I've tried this, but it doesn't seem to help. The problem is that, in my case, the library I want to add isn't referenced from anywhere (it will be, by a simulator under which I'll run the binary). And since this library isn't really needed, it's doesn't seem to be added by statifier either.
Regards,
Wim
Could you post command that you used to statify your executable ?
Sorry, it does work now (with -set=LD_PRELOAD=), I must have done something wrong before. Thanks!
You are welcome