Re: Difference between -shared, -symbolic, and -G?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Todd <todd.freed@xxxxxxxxx> writes:

> Hmm. I just need to have a function in my shared library, callable
> from the executable linked against the shared library, which I can
> also call 
> from inside the shared library such that calls originating inside
> always 
> invoke the one defined inside. What is the right way to achieve this, then?

Give the function in the library protected visibility, using gcc's
-fvisibility option or __attribute__ ((visibility ("protected"))).

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux