You copied the Doc URL to your clipboard.

-Xlinker

Specifies command-line options to pass to the linker when a link step is being performed after compilation.

See the ARM® Compiler toolchain Linker Reference for information about available linker options.

Syntax

-Xlinker opt

Where:

opt

is a command-line option to pass to the linker.

If you want to pass multiple options, use multiple -Xlinker options.

Restrictions

The linker generates an error if -Xlinker passes unsupported options.

Examples

This example passes the option --split to the linker:

armclang --target=aarch64-arm-none-eabi hello.c -Xlinker --split

This example passes the options --list diag.txt to the linker:

armclang --target=aarch64-arm-none-eabi hello.c -Xlinker --list -Xlinker diag.txt

Related reference

Was this page helpful? Yes No