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]

[PATCH] ld: Add LTO warning to --wrap documentation


ld/

	* ld.texi (--wrap): Add warning that LTO may make this feature
	ineffective.
---
 ld/ld.texi | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ld/ld.texi b/ld/ld.texi
index 5179af3e0e..d0ceea1626 100644
--- a/ld/ld.texi
+++ b/ld/ld.texi
@@ -2411,6 +2411,9 @@ g (void)
 @}
 @end smallexample
 
+Please keep in mind that with link-time optimization (LTO) enabled, your whole
+program may be a translation unit.
+
 @kindex --eh-frame-hdr
 @kindex --no-eh-frame-hdr
 @item --eh-frame-hdr
-- 
2.16.4


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