This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Build shared libraries with -Bsymbolic-functions


On Sun, Jan 14, 2007 at 10:47:41AM -0800, H. J. Lu wrote:
> On Sun, Jan 14, 2007 at 01:30:07PM -0500, Andrew Pinski wrote:
> > > I checked in the libjava part. Here is the updated patch for other
> > > libraries. If someone can give me a list of functions in libobjc
> > > which should be overridable, I will add them to the dynamic list
> > > for libobjc.
> > 
> > All except for the class functions themselves.  For libobjc, a better
> > way of doing this is actually marking the class methods as hidden as they
> > are never called directly.
> 
> I assume *.m files have class functions and other files have non-class
> functions which may be overrable by programmers. Is that correct?
> 
> What about functuons with the prefixes of __?

I took a look at

http://www.dribin.org/dave/blog/archives/2006/04/22/tracing_objc/
http://developer.apple.com/documentation/DeveloperTools/Conceptual/DynamicLibraries/Articles/UsingDynamicLibraries.html#//apple_ref/doc/uid/TP40002182-DontLinkElementID_32

If I understand it correctly, you should be able to interpose a
function in a shared library in your code. That is in your code,
instead of calling the function in a shared library, you call another
function instead. It is useful to debug your code. But that doesn't
mean you will be able to interpose the function calls inside the
shared library.


H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]