ld: Add LTO warning to --wrap documentation

Message ID 20190114073210.24689-1-sebastian.huber@embedded-brains.de
State New
Headers show
Series
  • ld: Add LTO warning to --wrap documentation
Related show

Commit Message

Sebastian Huber Jan. 14, 2019, 7:32 a.m.
ld/

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

-- 
2.16.4

Comments

Alan Modra Jan. 18, 2019, 12:24 a.m. | #1
On Mon, Jan 14, 2019 at 08:32:10AM +0100, Sebastian Huber wrote:
> ld/

> 

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

> 	ineffective.


OK.

-- 
Alan Modra
Australia Development Lab, IBM

Patch

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