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?


On Thu, Jan 10, 2019 at 01:14:22PM +0100, Sebastian Huber wrote:
> from the documentation
> 
> "Use a wrapper function for symbol. Any undefined reference to symbol will
> be resolved to __wrap_symbol. Any undefined reference to __real_symbol will
> be resolved to symbol. "

Note "undefined reference".  The references you want wrapped should
not be defined in the same file.

-- 
Alan Modra
Australia Development Lab, IBM

Attachment: ld-wrap.tar.gz
Description: application/gzip


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