Hello David Zhou,
.ld is the linker file extension for GNU ARM compiler (well, linker), while .lcf is for the proprietary Freescale ARM compiler/linker.
In CW for MCU (legacy) Freescale ARM compiler is available only for Coldfire devices and GNU compiler is for kinetis devices.
You can check the below document, this document contains an overview of what is the Codewarrior Linker File for Kinetis devices and how to edit it to relocate code and data. It also explains how to create a debug sesion out of external RAM.
Relocating Code and Data Using the CW GCC Linker File for Kinetis
In addition please check the below link, this may helps.
https://community.nxp.com/thread/377910
Have a great day,
Sol
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------