Content originally posted in LPCWare by TheFallGuy on Wed Jun 05 04:32:33 MST 2013
Why do you want to do this?
All code will be placed in the .text section, initialized data in the .data section and uninitialized data in the .bss section. Depending on how code-red compiled their libraries, they may have placed each function into its own section (i.e. .text_function_name) - you would have to look in the link map to find out.
So, you would need to create a linker script that assigns EVERY section to a specific memory region. You would have to update this every time you added/removed a function. A lot of work.
So, again, why do you want to do this?