1.74 -Xlinker

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

See the Arm® Compiler armlink User Guide for information about available linker options.


-Xlinker opt



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

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


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


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

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

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

armclang --target=aarch64-arm-none-eabi -mcpu=cortex-a53 hello.c -Xlinker --list -Xlinker diag.txt
Non-ConfidentialPDF file icon PDF versionDUI0774J
Copyright © 2014–2017, 2019 Arm Limited or its affiliates. All rights reserved.