Does the LD --wrap feature work for library internal references?

Alan Modra amodra@gmail.com
Thu Jan 10 13:09:00 GMT 2019


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ld-wrap.tar.gz
Type: application/gzip
Size: 478 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20190110/901aaaac/attachment.gz>


More information about the Binutils mailing list