zephyr/cmake
Torsten Rasmussen 39f06e0195 ld.bfd: ensure that ld.bfd is preferred over ld.
Fixes: #32237

When building for native_posix, then host tools are used.
This means that gcc will link using `/usr/bin/ld` per default.

If ld points to lld, then linking will fail.

This commit will first look for ld.bfd, and if found then use
-fuse-ld=bfd for linking. If ld.bfd is not found, then ld is used as
fallback as that will be assumed to be the best working candidate.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2021-05-26 10:54:45 -05:00
..
app cmake: cleanup version printing during CMake configure time 2021-05-07 20:50:02 -04:00
bintools toolchain: llvm: Find strip command 2021-04-17 21:03:13 -04:00
compiler samples: tensorflow: add no-threadsafe-statics to compiler flags 2021-05-20 20:59:45 -04:00
emu ARC: ARCv3: add nsim_hs6x board 2021-05-07 14:55:49 -05:00
flash runners: remove dependencies from runners 2021-04-19 15:35:30 +02:00
ide license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
linker ld.bfd: ensure that ld.bfd is preferred over ld. 2021-05-26 10:54:45 -05:00
makefile_exports cmake: using zephyr_get_compile_options_for_lang_as_string for export 2020-12-15 08:37:54 -05:00
reports scripts: size_report: Add a depth parameter to CMakeLists.txt 2021-04-14 07:05:58 -04:00
toolchain cmake: llvm: llvm has no newlib 2021-04-22 07:42:58 -04:00
usage boards/shields: re-work handling in cmake and west 2021-01-15 15:07:49 -05:00
util license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
boards.cmake boards/shields: re-work handling in cmake and west 2021-01-15 15:07:49 -05:00
ccache.cmake license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
cfb.cmake cmake: using ${ZEPHYR_BASE} instead of $ENV{ZEPHYR_BASE} 2020-03-27 16:23:46 +01:00
dts.cmake cmake: dtc: Validate EXTRA_DTC_FLAGS flags 2021-03-03 17:29:29 +01:00
extensions.cmake cmake: extensions.cmake: use blocklist instead in comment 2021-05-24 23:16:28 -04:00
extra_flags.cmake cmake: extra_flags: fix EXTRA_CPPFLAGS being applied as macros 2019-12-13 13:23:40 -05:00
gcc-m-cpu.cmake ARC: prepare for building for ARCv3 HS6x 2021-05-07 14:55:49 -05:00
generic_toolchain.cmake cmake: twister: Using common script for toolchain setting verification 2021-02-04 20:05:05 -05:00
git.cmake cmake: cleanup version printing during CMake configure time 2021-05-07 20:50:02 -04:00
hex.cmake license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
host-tools.cmake cmake: add IMGTOOL optional dependency 2020-09-01 13:33:46 +02:00
kconfig.cmake cmake: kconfig: Remove unused extra dtc flags 2021-04-01 07:31:50 -05:00
kobj.cmake cmake: improved handling of output and byproducts in CMake 2021-02-14 18:09:24 -05:00
mcuboot.cmake cmake: mcuboot: confirmed images needs to be padded 2020-09-04 12:00:04 +02:00
pristine.cmake cmake: pristine.cmake requires SOURCE_DIR and BINARY_DIR as arguments 2021-01-23 08:31:13 -05:00
python.cmake cmake: use WEST_PYTHON as a preferred python installation if defined. 2021-04-27 13:31:23 -04:00
shields.cmake boards/shields: re-work handling in cmake and west 2021-01-15 15:07:49 -05:00
target_toolchain.cmake cmake: use the toolchain path, id and version as extended signature. 2020-12-14 11:56:00 -05:00
target_toolchain_flags.cmake cmake: use the toolchain path, id and version as extended signature. 2020-12-14 11:56:00 -05:00
verify-toolchain.cmake cmake: twister: Using common script for toolchain setting verification 2021-02-04 20:05:05 -05:00
version.cmake cmake: cleanup version printing during CMake configure time 2021-05-07 20:50:02 -04:00
west.cmake cmake: west: do not print error if west topdir fails 2021-03-17 11:28:14 +01:00
zephyr_module.cmake cmake: modules: Remove duplicates only from existing ZEPHYR_MODULE_NAMES 2021-03-09 07:04:09 -05:00