Skip to content

Commit 5701c94

Browse files
author
Cruz Monrreal
authored
Merge pull request #9714 from deepikabhavnani/cleanup_linker_files
Only GCC_ARM toolchain is supported, removing legacy code
2 parents 6278ed6 + 818d38b commit 5701c94

File tree

28 files changed

+3
-5495
lines changed

28 files changed

+3
-5495
lines changed

platform/mbed_retarget.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ extern "C" WEAK void __cxa_pure_virtual(void)
12031203
// Provide implementation of _sbrk (low-level dynamic memory allocation
12041204
// routine) for GCC_ARM which compares new heap pointer with MSP instead of
12051205
// SP. This make it compatible with RTX RTOS thread stacks.
1206-
#if defined(TOOLCHAIN_GCC_ARM) || defined(TOOLCHAIN_GCC_CR)
1206+
#if defined(TOOLCHAIN_GCC_ARM)
12071207

12081208
#if defined(TARGET_CORTEX_A)
12091209
extern "C" uint32_t __HeapLimit;
@@ -1255,7 +1255,7 @@ extern "C" WEAK caddr_t _sbrk(int incr)
12551255
#endif
12561256
#endif
12571257

1258-
#if defined(TOOLCHAIN_GCC_ARM) || defined(TOOLCHAIN_GCC_CR)
1258+
#if defined(TOOLCHAIN_GCC_ARM)
12591259
extern "C" void _exit(int return_code)
12601260
{
12611261
#else
@@ -1285,7 +1285,7 @@ extern "C" void exit(int return_code)
12851285
while (1);
12861286
}
12871287

1288-
#if !defined(TOOLCHAIN_GCC_ARM) && !defined(TOOLCHAIN_GCC_CR)
1288+
#if !defined(TOOLCHAIN_GCC_ARM)
12891289
} //namespace std
12901290
#endif
12911291

targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/device/TOOLCHAIN_GCC_CW_EWL/MKL25Z4.ld

Lines changed: 0 additions & 201 deletions
This file was deleted.

targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/device/TOOLCHAIN_GCC_CW_EWL/startup_MKL25Z4.c

Lines changed: 0 additions & 147 deletions
This file was deleted.

0 commit comments

Comments
 (0)