1 /* 2 * Copyright (c) 2013-2014, Wind River Systems, Inc. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 /** 8 * @file 9 * @brief Toolchain-agnostic linker defs 10 * 11 * This header file is used to automatically select the proper set of macro 12 * definitions (based on the toolchain) for the linker script. 13 */ 14 15 #ifndef ZEPHYR_INCLUDE_LINKER_LINKER_TOOL_H_ 16 #define ZEPHYR_INCLUDE_LINKER_LINKER_TOOL_H_ 17 18 #if defined(_LINKER) 19 #if defined(__GCC_LINKER_CMD__) 20 #include <zephyr/linker/linker-tool-gcc.h> 21 #elif defined(__MWDT_LINKER_CMD__) 22 #include <zephyr/linker/linker-tool-mwdt.h> 23 #elif defined(__LLD_LINKER_CMD__) 24 #include <zephyr/linker/linker-tool-lld.h> 25 #else 26 #error "Unknown toolchain" 27 #endif 28 #endif 29 30 #endif /* ZEPHYR_INCLUDE_LINKER_LINKER_TOOL_H_ */ 31