-e

Purpose

When used together with the -shared option or -G option, specifies an entry point for a shared object.

Syntax

Read syntax diagramSkip visual syntax diagram -e entry_name

Defaults

Not applicable.

Parameters

name
The name of the entry point for the shared executable.

Usage

Specify the -e option only with the -shared or -G option.

Note: When you link object files, do not use the -e option. The default entry point of the executable output is __start. Changing this label with the -e flag can produce errors.

Predefined macros

None.

Related information