This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] ELF: update ld man page on `--gc-sections`


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b69e1ff3507b3ba841f59dcf9bb121fcdd78044e

commit b69e1ff3507b3ba841f59dcf9bb121fcdd78044e
Author: Christoph Conrads <christoph.conrads@fluent.ai>
Date:   Thu Oct 25 21:21:41 2018 +0200

    ELF: update ld man page on `--gc-sections`
    
    Commit 91ae256e33 fixes the behavior of ld when `--gc-sections` and
    `--gc-keep-exported` are both given on the linker command line.  This
    updates the ld documentation to suit.
    
    	* ld.texi (--gc-sections): Update.

Diff:
---
 ld/ChangeLog | 4 ++++
 ld/ld.texi   | 8 +++++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/ld/ChangeLog b/ld/ChangeLog
index 6026575..b772dcd 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,7 @@
+2018-10-26  Christoph Conrads  <christoph.conrads@fluent.ai>
+
+	* ld.texi (--gc-sections): Update.
+
 2018-10-24  H.J. Lu  <hongjiu.lu@intel.com>
 
 	PR ld/23818
diff --git a/ld/ld.texi b/ld/ld.texi
index 6e0b48b..b304ea2 100644
--- a/ld/ld.texi
+++ b/ld/ld.texi
@@ -1605,12 +1605,14 @@ referenced by dynamic objects.  Note that when building shared
 libraries, the linker must assume that any visible symbol is
 referenced.  Once this initial set of sections has been determined,
 the linker recursively marks as used any section referenced by their
-relocations.  See @samp{--entry} and @samp{--undefined}.
+relocations.  See @samp{--entry}, @samp{--undefined}, and
+@samp{--gc-keep-exported}.
 
 This option can be set when doing a partial link (enabled with option
 @samp{-r}).  In this case the root of symbols kept must be explicitly
-specified either by an @samp{--entry} or @samp{--undefined} option or by
-a @code{ENTRY} command in the linker script.
+specified either by one of the options @samp{--entry},
+@samp{--undefined}, or @samp{--gc-keep-exported} or by a @code{ENTRY}
+command in the linker script.
 
 @kindex --print-gc-sections
 @kindex --no-print-gc-sections


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]