Non-Confidential | ![]() | 100067_0609_00_en | ||
| ||||
Home > armclang Command-line Options > -Wl |
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.
-Wl,
opt
,[opt
[,...]]
Where:
opt
is a linker command-line option to pass to the linker.
You can specify a comma-separated list of options or option=argument
pairs.
The linker generates an error if -Wl
passes unsupported options.
The following examples show the different syntax usages. They are equivalent because armlink
treats the single option
--list=diag.txt
and the two options --list diag.txt
equivalently:
armclang --target=aarch64-arm-none-eabi -mcpu=cortex-a53 hello.c -Wl,--split,--list,diag.txt armclang --target=aarch64-arm-none-eabi -mcpu=cortex-a53 hello.c -Wl,--split,--list=diag.txt