[doc,committed] document -e and --entry

Message ID fb454864-435a-8ffb-c481-de661d069556@codesourcery.com
State New
Headers show
Series
  • [doc,committed] document -e and --entry
Related show

Commit Message

Sandra Loosemore Nov. 8, 2018, 1:29 a.m.
Trying to knock off some easy documentation bugs from bugzilla...

I've checked in this patch to fix PR driver/80828, about missing 
documentation for these options that are passed through to the linker.

-Sandra

Patch

Index: gcc/doc/invoke.texi
===================================================================
--- gcc/doc/invoke.texi	(revision 265902)
+++ gcc/doc/invoke.texi	(working copy)
@@ -524,6 +524,7 @@  Objective-C and Objective-C++ Dialects}.
 @xref{Link Options,,Options for Linking}.
 @gccoptlist{@var{object-file-name}  -fuse-ld=@var{linker}  -l@var{library} @gol
 -nostartfiles  -nodefaultlibs  -nolibc  -nostdlib @gol
+-e @var{entry}  --entry=@var{entry} @gol
 -pie  -pthread  -r  -rdynamic @gol
 -s  -static -static-pie -static-libgcc  -static-libstdc++ @gol
 -static-libasan  -static-libtsan  -static-liblsan  -static-libubsan @gol
@@ -12712,6 +12713,15 @@  library subroutines.
 constructors are called; @pxref{Collect2,,@code{collect2}, gccint,
 GNU Compiler Collection (GCC) Internals}.)
 
+@item -e @var{entry}
+@itemx --entry=@var{entry}
+@opindex e
+@opindex entry
+
+Specify that the program entry point is @var{entry}.  The argument is
+interpreted by the linker; the GNU linker accepts either a symbol name
+or an address.
+
 @item -pie
 @opindex pie
 Produce a dynamically linked position independent executable on targets