This is the mail archive of the binutils-cvs@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]

[binutils-gdb] ld: Add LTO warning to --wrap documentation


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6406a2701bda7437e879bff026adc8a5a94e87ff

commit 6406a2701bda7437e879bff026adc8a5a94e87ff
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date:   Mon Jan 14 08:30:19 2019 +0100

    ld: Add LTO warning to --wrap documentation
    
    ld/
    
    	* ld.texi (--wrap): Add warning that LTO may make this feature
    	ineffective.

Diff:
---
 ld/ChangeLog | 5 +++++
 ld/ld.texi   | 3 +++
 2 files changed, 8 insertions(+)

diff --git a/ld/ChangeLog b/ld/ChangeLog
index f727515..35b0c45 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2019-01-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
+
+	* ld.texi (--wrap): Add warning that LTO may make this feature
+	ineffective.
+
 2019-01-21  Nick Clifton  <nickc@redhat.com>
 
 	* po/uk.po: Updated Ukranian translation.
diff --git a/ld/ld.texi b/ld/ld.texi
index 5179af3..d0ceea1 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


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