ld: Add LTO warning to --wrap documentation
authorSebastian Huber <sebastian.huber@embedded-brains.de>
Mon, 14 Jan 2019 07:30:19 +0000 (08:30 +0100)
committerSebastian Huber <sebastian.huber@embedded-brains.de>
Wed, 23 Jan 2019 08:47:28 +0000 (09:47 +0100)
ld/

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

ld/ChangeLog
ld/ld.texi

index f727515289e49a8d07c236d09283eb211982534c..35b0c45a53b225db17bfdf481986d529d6e2b395 100644 (file)
@@ -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.
index 5179af3e0e1f3c4c1f50399c302b79dc3c059441..d0ceea162683427e532a2bd7e551196e39e7c25b 100644 (file)
@@ -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