Hello,
Yes, the "__attribute__ " command can't relocate a file ,
as your code , if you delete main.c (.my_text) , then will put .my_text section to m_text2.
About relocating on CW, please take a look at the below guide :
Relocating Code and Data Using the CW GCC Linker File for Kinetis
Do you want to relocate all the APP code into other memory ? If yes, you can also re-configure the MEMORY part
of Linker file .
Hope it helps,
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------