This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] ld: Add LTO warning to --wrap documentation
- From: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- To: binutils at sourceware dot org
- Date: Mon, 14 Jan 2019 08:32:10 +0100
- Subject: [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