[PATCH] ld: Add LTO warning to --wrap documentation
Sebastian Huber
sebastian.huber@embedded-brains.de
Mon Jan 14 07:32:00 GMT 2019
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
More information about the Binutils
mailing list