https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113610

            Bug ID: 113610
           Summary: Manpage could be more clear about gcc's -e flag
           Product: gcc
           Version: 13.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mike at flyn dot org
  Target Milestone: ---

The GCC manpage states this:

-e entry
--entry=entry
    Specify that the program entry point is entry. The argument is interpreted
    by the linker; the GNU linker accepts either a symbol name or an address.

It might be worth noting that this refers to _start, and not main. Many
references refer to main as the "entry point" for a C program. Of course,
thinking this here fails to realize there is significant initialization that
will not happen when using -e. Either mentioning _start explicitly or noting
that changing the entry point might leave things like the heap uninitialized (I
think) might help.

The same can be said about the ld manpage.

Reply via email to