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 <linker/linker-tool-gcc.h> 21 #elif defined(__MWDT_LINKER_CMD__) 22 #include <linker/linker-tool-mwdt.h> 23 #else 24 #error "Unknown toolchain" 25 #endif 26 #endif 27 28 #endif /* ZEPHYR_INCLUDE_LINKER_LINKER_TOOL_H_ */ 29