From 6406a2701bda7437e879bff026adc8a5a94e87ff Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 14 Jan 2019 08:30:19 +0100 Subject: [PATCH] ld: Add LTO warning to --wrap documentation ld/ * ld.texi (--wrap): Add warning that LTO may make this feature ineffective. --- ld/ChangeLog | 5 +++++ ld/ld.texi | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ld/ChangeLog b/ld/ChangeLog index f727515289e..35b0c45a53b 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2019-01-23 Sebastian Huber + + * ld.texi (--wrap): Add warning that LTO may make this feature + ineffective. + 2019-01-21 Nick Clifton * po/uk.po: Updated Ukranian translation. diff --git a/ld/ld.texi b/ld/ld.texi index 5179af3e0e1..d0ceea16268 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.30.2