1# coverage is a property holding the linker flag required for coverage support on the toolchain.
2# For example, on ld/gcc this would be: -lgcov
3# Set the property for the corresponding flags of the given toolchain.
4set_property(TARGET linker PROPERTY coverage)
5
6# Linker flag for printing of memusage.
7# Set this flag if the linker supports reporting of memusage as part of link,
8# such as ls --print-memory-usage flag.
9# If memory reporting is a post build command, please use
10# cmake/bintools/bintools.cmake instead.
11check_set_linker_property(TARGET linker PROPERTY memusage)
12
13# Extra warnings options for twister run
14set_property(TARGET linker PROPERTY warnings_as_errors)
15
16# Linker flag for disabling position independent binaries,
17# such as, "-no-pie" for LD, and "--no-pie" for LLD.
18set_property(TARGET linker PROPERTY no_position_independent)
19
20# Linker flag for doing partial linking
21# such as, "-r" or "--relocatable" for LD and LLD.
22set_property(TARGET linker PROPERTY partial_linking)
23