This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: Does the LD --wrap feature work for library internal references?


Hi Sebastian,

> The f() function returns a function pointer to g(). The indirect (*gg)() call is not wrapped, the direct g() call is wrapped.

Yeah, I get this too. :-(

> Is this a bug or a feature?

Well I would have to say "bug", although I think that it is really a case
of expecting too much of a feature that was really only intended to catch
ordinary function calls.

I have no idea how to fix it however, so maybe the best that we can is to 
update the documentation....

Cheers
  Nick

 


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