gcc - imposing library loading order -


I have a GCC-compiled application that is connected to dynamic libraries. Is there a way to implement the order in which the library loads? (In my case, a library creator uses the resources established by the second library constructor).

Thank you.

GCC is not the charge of loading the libraries, either Ld.so automatically does when your program loads, or you manually suggests it @ Jldupont.

and ld.so can be ordered to stop the return-to-stadilib attacks.

Then either:

  1. Load the library yourself.
  2. Remove dependencies between library load scripts.
  3. Libraries themselves may have dependencies (maybe work may be done) This happens when you come to the point of adding each shared library, to ensure that the -l & lt; Dependantlib & gt; Link command You can test it by creating a stereoscopic program that only links to the shared library - if it creates and runs, then the library has all the necessary dependent labs. It can help if ld.so dependency loads the libraries in order - which I think is to do it.

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -