bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/25389] - -Wl,--wrap -fuse-ld=bfd not supported with LTO


From: hjl.tools at gmail dot com
Subject: [Bug ld/25389] - -Wl,--wrap -fuse-ld=bfd not supported with LTO
Date: Fri, 17 Jan 2020 05:00:06 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=25389

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
The testcase is invalid since

'--wrap=SYMBOL'
     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.

     This can be used to provide a wrapper for a system function.  The
     wrapper function should be called '__wrap_SYMBOL'.  If it wishes to
     call the system function, it should call '__real_SYMBOL'.

When SYMBOL definition is compiled with LTO, LTO will resolve all SYMBOL
references to SYMBOL definition in LTO since LTO doesn't know --wrap.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]