zephyr/cmake/linker
Daniel Leung c9d70bb986 linker: ld: include crt{begin,end}.o if LIBGCC_DIR is defined
Only include crtbegin.o and crtend.o when LIBGCC_DIR is defined.
Since LIBGCC_DIR is not defined when compiling for posix
architecture, crt{begin,end}.o cannot be referred to via
LIBGCC_DIR.

Also note that, when using llvm/clang, crt{begin,end}S.o are
automatically for native_posix which collide with symbols in
crt{begin,end}.o. So there is no point in making LIBGCC_DIR
available for native_posix under llvm/clang.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2023-03-29 19:48:47 -04:00
..
arcmwdt toolchain: Move extra warning options to toolchain abstraction 2023-02-19 20:34:13 -05:00
armlink cmake: Update cmake_minimum_required to 3.20.0 2022-07-04 10:18:45 +02:00
ld linker: ld: include crt{begin,end}.o if LIBGCC_DIR is defined 2023-03-29 19:48:47 -04:00
lld linker: ld: lld: do not do RELRO when using llvm/clang 2023-03-29 19:48:47 -04:00
xt-ld linker: introduce profile xt-ld 2023-02-22 08:35:46 -05:00
linker_flags_template.cmake cmake: linker: make passing -no-pie configurable 2023-03-29 19:48:47 -04:00
linker_script_common.cmake everywhere: fix typos 2022-03-14 20:22:24 -04:00