Skip to content
Commit d941df7e authored by Aurelien Jarno's avatar Aurelien Jarno Committed by Anas Nashif
Browse files

arch: ARM: set -mabi and -march in linker flags



Some toolchains are built with multilib enabled in order to provide
multiple versions of the same library, optimized for different ABI
or architecture. They require the -march= and -mabi= options to be
passed at link time. This is important for example when linking with
newlib.

We do that by passing zephyr_ld_options the same arguments than
zephyr_compile_options. The -mabi option is passed directly while the
-march option, if defined, is passed through ${ARCH_FLAG}.

Signed-off-by: default avatarAurelien Jarno <aurelien@aurel32.net>
parent f78067e1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment