This is the second patch required to support compilation for Intel MCU target (e.g. Intel(R) Quark(TM) micro controller D 2000).
When IAMCU triple is used:
- Recognize and use IAMCU GCC toolchain
- Set up include paths
- Forbid C++
The linker-related changes will be in the last part.
Are you sure there's no equivalente for this already? I'm surprised!