2015-04-11 07:44:37 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2013-2014, Wind River Systems, Inc.
|
|
|
|
*
|
2017-01-19 09:01:01 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2015-04-11 07:44:37 +08:00
|
|
|
*/
|
|
|
|
|
2015-12-04 23:09:39 +08:00
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* @brief Toolchain-agnostic linker defs
|
|
|
|
*
|
2015-10-21 00:42:33 +08:00
|
|
|
* This header file is used to automatically select the proper set of macro
|
|
|
|
* definitions (based on the toolchain) for the linker script.
|
2015-07-02 05:22:39 +08:00
|
|
|
*/
|
2015-04-11 07:44:37 +08:00
|
|
|
|
2018-09-15 01:43:44 +08:00
|
|
|
#ifndef ZEPHYR_INCLUDE_LINKER_LINKER_TOOL_H_
|
|
|
|
#define ZEPHYR_INCLUDE_LINKER_LINKER_TOOL_H_
|
2015-04-11 07:44:37 +08:00
|
|
|
|
|
|
|
#if defined(_LINKER)
|
|
|
|
#if defined(__GCC_LINKER_CMD__)
|
2017-06-17 23:30:47 +08:00
|
|
|
#include <linker/linker-tool-gcc.h>
|
2020-09-02 22:04:19 +08:00
|
|
|
#elif defined(__MWDT_LINKER_CMD__)
|
|
|
|
#include <linker/linker-tool-mwdt.h>
|
2015-04-11 07:44:37 +08:00
|
|
|
#else
|
|
|
|
#error "Unknown toolchain"
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2018-09-15 01:43:44 +08:00
|
|
|
#endif /* ZEPHYR_INCLUDE_LINKER_LINKER_TOOL_H_ */
|